Skip to content

Commit b211215

Browse files
author
devz906
committed
Fix iOS clang compiler flags for dylib creation
- Change -sysroot to -isysroot for iOS compatibility - Fix all dylib creation commands in script - Resolves 'unknown argument -sysroot' clang error - Should now successfully create libbox64.dylib from interpreter objects This fixes the final compilation error preventing framework creation
1 parent 7dcab1a commit b211215

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compile_engine.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ if [ -f "box64" ]; then
110110
# Create libbox64.dylib from the box64 binary for iOS framework
111111
echo "📦 Creating libbox64.dylib from box64 binary..."
112112
"$CC_PATH" -dynamiclib -o "../libbox64.dylib" \
113-
-sysroot "$SYSROOT_PATH" \
113+
-isysroot "$SYSROOT_PATH" \
114114
-target "$TARGET_ARCH-apple-ios$MIN_IOS_VERSION" \
115115
-install_name "@rpath/libbox64.dylib" \
116116
box64 \
@@ -251,7 +251,7 @@ else
251251

252252
# Create dynamic library
253253
"$CC_PATH" -dynamiclib -o "../libbox64.dylib" \
254-
-sysroot "$SYSROOT_PATH" \
254+
-isysroot "$SYSROOT_PATH" \
255255
-target "$TARGET_ARCH-apple-ios$MIN_IOS_VERSION" \
256256
-install_name "@rpath/libbox64.dylib" \
257257
src/libbox64.a \
@@ -365,7 +365,7 @@ EOF
365365

366366
# Create dylib from interpreter objects
367367
"$CC_PATH" -dynamiclib -o "../libbox64.dylib" \
368-
-sysroot "$SYSROOT_PATH" \
368+
-isysroot "$SYSROOT_PATH" \
369369
-target "$TARGET_ARCH-apple-ios$MIN_IOS_VERSION" \
370370
-install_name "@rpath/libbox64.dylib" \
371371
$OBJECT_FILES \

0 commit comments

Comments
 (0)