From fbf73eceaa2f146fb039e5a829ec40dcf56402a4 Mon Sep 17 00:00:00 2001 From: sjfhsjfh Date: Tue, 24 Mar 2026 05:22:03 +0800 Subject: [PATCH 1/2] fix: use iOS SDK assembler for iOS targets --- config/targets.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/targets.toml b/config/targets.toml index 6869545..9aa5ca9 100644 --- a/config/targets.toml +++ b/config/targets.toml @@ -28,7 +28,7 @@ name = "aarch64-apple-ios" os = "macos-latest" enabled = true note = "Requires Xcode and iOS SDK." -env = { CC = "xcrun -sdk iphoneos clang", CXX = "xcrun -sdk iphoneos clang++", IOS_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" } +env = { CC = "xcrun -sdk iphoneos clang", CXX = "xcrun -sdk iphoneos clang++", AS = "xcrun -sdk iphoneos clang", IOS_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" } configure = ["--arch=arm64", "--target-os=darwin", "--enable-cross-compile"] extra_configure = ["--disable-videotoolbox", "--sysroot=${IOS_SDK}"] extra_cflags = "-isysroot ${IOS_SDK} -miphoneos-version-min=9.0" @@ -39,7 +39,7 @@ name = "aarch64-apple-ios-sim" os = "macos-latest" enabled = true note = "Requires Xcode and iOS simulator SDK." -env = { CC = "xcrun -sdk iphonesimulator clang", CXX = "xcrun -sdk iphonesimulator clang++", IOS_SIM_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk" } +env = { CC = "xcrun -sdk iphonesimulator clang", CXX = "xcrun -sdk iphonesimulator clang++", AS = "xcrun -sdk iphonesimulator clang", IOS_SIM_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk" } configure = [ "--arch=arm64", "--target-os=darwin", From 882b8b076e13706abf2c4b5e4c17b516c2c93da3 Mon Sep 17 00:00:00 2001 From: sjfhsjfh Date: Tue, 24 Mar 2026 05:33:40 +0800 Subject: [PATCH 2/2] fix: pass iOS toolchain commands to configure --- config/targets.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/targets.toml b/config/targets.toml index 9aa5ca9..c39cf1c 100644 --- a/config/targets.toml +++ b/config/targets.toml @@ -29,7 +29,15 @@ os = "macos-latest" enabled = true note = "Requires Xcode and iOS SDK." env = { CC = "xcrun -sdk iphoneos clang", CXX = "xcrun -sdk iphoneos clang++", AS = "xcrun -sdk iphoneos clang", IOS_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" } -configure = ["--arch=arm64", "--target-os=darwin", "--enable-cross-compile"] +configure = [ + "--arch=arm64", + "--target-os=darwin", + "--enable-cross-compile", + "--cc=${CC}", + "--cxx=${CXX}", + "--as=${CC}", + "--ld=${CC}", +] extra_configure = ["--disable-videotoolbox", "--sysroot=${IOS_SDK}"] extra_cflags = "-isysroot ${IOS_SDK} -miphoneos-version-min=9.0" extra_ldflags = "-isysroot ${IOS_SDK} -miphoneos-version-min=9.0" @@ -44,6 +52,10 @@ configure = [ "--arch=arm64", "--target-os=darwin", "--enable-cross-compile", + "--cc=${CC}", + "--cxx=${CXX}", + "--as=${CC}", + "--ld=${CC}", "--disable-videotoolbox", ] extra_configure = ["--disable-videotoolbox", "--sysroot=${IOS_SIM_SDK}"]