diff options
| author | ruki <[email protected]> | 2020-05-16 21:28:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-16 21:28:07 +0800 |
| commit | ed247a74689d45a4cf9a8a8e4aee64dba741df43 (patch) | |
| tree | 282633f6972f7ed20951805e4971619571e86aac /xmake/toolchains/xcode/xmake.lua | |
| parent | d021df166bfd45c2d18ae6fa39cd685006491d01 (diff) | |
check tool for toolchain
Diffstat (limited to 'xmake/toolchains/xcode/xmake.lua')
| -rw-r--r-- | xmake/toolchains/xcode/xmake.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/xmake.lua b/xmake/toolchains/xcode/xmake.lua index 633f5a45d..1c39a6453 100644 --- a/xmake/toolchains/xcode/xmake.lua +++ b/xmake/toolchains/xcode/xmake.lua @@ -21,3 +21,19 @@ -- define toolchain toolchain("xcode") + -- set toolsets + set_toolsets("cc", "xcrun -sdk macosx clang") + set_toolsets("cxx", "xcrun -sdk macosx clang", "xcrun -sdk macosx clang++") + set_toolsets("as", "xcrun -sdk macosx clang") + set_toolsets("ld", "xcrun -sdk macosx clang++", "xcrun -sdk macosx clang") + set_toolsets("sh", "xcrun -sdk macosx clang++", "xcrun -sdk macosx clang") + set_toolsets("ar", "xcrun -sdk macosx ar") + set_toolsets("ex", "xcrun -sdk macosx ar") + set_toolsets("strip", "xcrun -sdk macosx strip") + set_toolsets("dsymutil", "xcrun -sdk macosx dsymutil", "dsymutil") + set_toolsets("mm", "xcrun -sdk macosx clang") + set_toolsets("mxx", "xcrun -sdk macosx clang", "xcrun -sdk macosx clang++") + set_toolsets("sc", "xcrun -sdk macosx swiftc", "swiftc") + set_toolsets("scld", "xcrun -sdk macosx swiftc", "swiftc") + set_toolsets("scsh", "xcrun -sdk macosx swiftc", "swiftc") + |
