summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/linux
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-09 10:33:37 +0800
committerruki <[email protected]>2015-12-09 10:33:37 +0800
commit2890ded4a7baa898fd5dc5f5b478f7cf41ab1f1d (patch)
tree63fccecd8f6218dfe93527233b7283fc15c36622 /xmake/scripts/platform/linux
parentcaeedfebaed4de91afb0c66ef1706164dad79da6 (diff)
add swift for linux and android
Diffstat (limited to 'xmake/scripts/platform/linux')
-rw-r--r--xmake/scripts/platform/linux/linux.lua1
-rw-r--r--xmake/scripts/platform/linux/prober.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/xmake/scripts/platform/linux/linux.lua b/xmake/scripts/platform/linux/linux.lua
index dc8c9cb27..3e3c0b063 100644
--- a/xmake/scripts/platform/linux/linux.lua
+++ b/xmake/scripts/platform/linux/linux.lua
@@ -56,6 +56,7 @@ function linux.make(configs)
configs.tools.ar = config.get("ar")
configs.tools.sh = config.get("sh")
configs.tools.ex = config.get("ar")
+ configs.tools.sc = config.get("sc")
-- init flags for architecture
local archflags = nil
diff --git a/xmake/scripts/platform/linux/prober.lua b/xmake/scripts/platform/linux/prober.lua
index 5e5eec9b1..b476b0b8a 100644
--- a/xmake/scripts/platform/linux/prober.lua
+++ b/xmake/scripts/platform/linux/prober.lua
@@ -148,6 +148,7 @@ function prober._probe_toolchains(configs)
if not prober._probe_toolpath(configs, "ld", "", "g++", "the linker") then return false end
if not prober._probe_toolpath(configs, "ar", "", "ar", "the static library linker") then return false end
if not prober._probe_toolpath(configs, "sh", "", "g++", "the shared library linker") then return false end
+ if not prober._probe_toolpath(configs, "sc", "", "swiftc", "the swift compiler") then return false end
return true
end