From 376b206b27edafec967e965ffd72f220f604e609 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 19 May 2021 00:37:33 +0800 Subject: improve xcode toolchain --- xmake/toolchains/xcode/load_iphoneos.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmake/toolchains/xcode/load_iphoneos.lua') diff --git a/xmake/toolchains/xcode/load_iphoneos.lua b/xmake/toolchains/xcode/load_iphoneos.lua index b7596e7ce..fc52d5f3c 100644 --- a/xmake/toolchains/xcode/load_iphoneos.lua +++ b/xmake/toolchains/xcode/load_iphoneos.lua @@ -37,15 +37,15 @@ function main(toolchain) local target_minver_flags = (simulator and "-mios-simulator-version-min=" or "-miphoneos-version-min=") .. target_minver -- init flags for c/c++ - toolchain:add("cxflags", "-arch " .. arch, target_minver_flags, "-isysroot " .. xcode_sysroot) - toolchain:add("ldflags", "-arch " .. arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot " .. xcode_sysroot) - toolchain:add("shflags", "-arch " .. arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot " .. xcode_sysroot) + toolchain:add("cxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("ldflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) + toolchain:add("shflags", "-arch", arch, "-ObjC", "-lstdc++", "-fobjc-link-runtime", target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for objc/c++ - toolchain:add("mxflags", "-arch " .. arch, target_minver_flags, "-isysroot " .. xcode_sysroot) + toolchain:add("mxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for asm - toolchain:add("asflags", "-arch " .. arch, target_minver_flags, "-isysroot " .. xcode_sysroot) + toolchain:add("asflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot) -- init flags for swift (with toolchain:add("ldflags and toolchain:add("shflags) toolchain:add("scflags", format("-target %s-apple-ios%s", arch, target_minver) , "-sdk " .. xcode_sysroot) -- cgit v1.3.1