summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/macosx/prober.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-08 11:21:18 +0800
committerruki <[email protected]>2015-12-08 11:21:18 +0800
commit75a2bc862eae7ed95ddee16e4271b773c95aeb65 (patch)
tree2480fec4245d006a52217fe6873852cc9ae1ee07 /xmake/scripts/platform/macosx/prober.lua
parent023bbfadd3a05f42e858a2a055bdf2f24f21aa78 (diff)
add swift compiler
Diffstat (limited to 'xmake/scripts/platform/macosx/prober.lua')
-rw-r--r--xmake/scripts/platform/macosx/prober.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/scripts/platform/macosx/prober.lua b/xmake/scripts/platform/macosx/prober.lua
index d2c397edc..cc4ac3dfb 100644
--- a/xmake/scripts/platform/macosx/prober.lua
+++ b/xmake/scripts/platform/macosx/prober.lua
@@ -239,6 +239,7 @@ function prober._probe_toolchains(configs)
if not prober._probe_toolpath(configs, "ld", "xcrun -sdk macosx ", "clang++", "the linker") then return false end
if not prober._probe_toolpath(configs, "ar", "xcrun -sdk macosx ", "ar", "the static library linker") then return false end
if not prober._probe_toolpath(configs, "sh", "xcrun -sdk macosx ", "clang++", "the shared library linker") then return false end
+ if not prober._probe_toolpath(configs, "sc", "xcrun -sdk macosx ", "swiftc", "the swift compiler") then return false end
return true
end