diff options
| author | ruki <[email protected]> | 2020-12-23 23:27:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-23 23:27:38 +0800 |
| commit | a729c747a47e55e06c73291cda53a3c620143213 (patch) | |
| tree | 15ce5ae9cb0fd025bdf238cd0de5fc18912df7cd /xmake/toolchains/xcode/load_macosx.lua | |
| parent | 85e912f6d1a58ccd811738efc43fa0ff711def34 (diff) | |
-a
Diffstat (limited to 'xmake/toolchains/xcode/load_macosx.lua')
| -rw-r--r-- | xmake/toolchains/xcode/load_macosx.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/load_macosx.lua b/xmake/toolchains/xcode/load_macosx.lua index cea62787d..f87a00c4f 100644 --- a/xmake/toolchains/xcode/load_macosx.lua +++ b/xmake/toolchains/xcode/load_macosx.lua @@ -39,16 +39,20 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("cxflags", "-arch " .. arch) toolchain:add("ldflags", "-arch " .. arch) + toolchain:add("shflags", "-arch " .. arch) if target_minver then toolchain:add("cxflags", "-mmacosx-version-min=" .. target_minver) toolchain:add("mxflags", "-mmacosx-version-min=" .. target_minver) toolchain:add("ldflags", "-mmacosx-version-min=" .. target_minver) + toolchain:add("shflags", "-mmacosx-version-min=" .. target_minver) end if xcode_sdkdir then toolchain:add("cxflags", "-isysroot " .. xcode_sdkdir) toolchain:add("ldflags", "-isysroot " .. xcode_sdkdir) + toolchain:add("shflags", "-isysroot " .. xcode_sdkdir) end toolchain:add("ldflags", "-stdlib=libc++") + toolchain:add("shflags", "-stdlib=libc++") toolchain:add("syslinks", "z") -- init flags for objc/c++ (with ldflags and shflags) |
