diff --git a/config/targets.toml b/config/targets.toml index 6869545..c39cf1c 100644 --- a/config/targets.toml +++ b/config/targets.toml @@ -28,8 +28,16 @@ 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" } -configure = ["--arch=arm64", "--target-os=darwin", "--enable-cross-compile"] +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", + "--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" @@ -39,11 +47,15 @@ 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", "--enable-cross-compile", + "--cc=${CC}", + "--cxx=${CXX}", + "--as=${CC}", + "--ld=${CC}", "--disable-videotoolbox", ] extra_configure = ["--disable-videotoolbox", "--sysroot=${IOS_SIM_SDK}"]