summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-27 13:19:51 +0800
committerruki <[email protected]>2017-02-27 13:19:51 +0800
commit7d1939d7dcc6f18f5cef9a4d443e44cfa4bdefa5 (patch)
treeaf354cb079826d5c46d592895dd3339285004b49
parent256c8e4eb25a2644e386516e3151264af32243eb (diff)
fix rust checkers
-rw-r--r--xmake/platforms/linux/check.lua3
-rw-r--r--xmake/platforms/macosx/check.lua3
-rw-r--r--xmake/platforms/windows/check.lua5
3 files changed, 10 insertions, 1 deletions
diff --git a/xmake/platforms/linux/check.lua b/xmake/platforms/linux/check.lua
index 4dc2f8c40..e7faa5154 100644
--- a/xmake/platforms/linux/check.lua
+++ b/xmake/platforms/linux/check.lua
@@ -121,6 +121,9 @@ function _check_toolchains(config)
-- check for rust tools
checker.check_toolchain(config, "rc", "", "rustc", "the rust compiler")
+ checker.check_toolchain(config, "rc-ar", "", "rustc", "the rust static library archiver")
+ checker.check_toolchain(config, "rc-sh", "", "rustc", "the rust shared library linker")
+ checker.check_toolchain(config, "rc-ld", "", "rustc", "the rust linker")
end
-- check it
diff --git a/xmake/platforms/macosx/check.lua b/xmake/platforms/macosx/check.lua
index f4f247a07..92af39162 100644
--- a/xmake/platforms/macosx/check.lua
+++ b/xmake/platforms/macosx/check.lua
@@ -78,6 +78,9 @@ function _check_toolchains(config)
-- check for rust tools
checker.check_toolchain(config, "rc", "", "rustc", "the rust compiler")
+ checker.check_toolchain(config, "rc-ar", "", "rustc", "the rust static library archiver")
+ checker.check_toolchain(config, "rc-sh", "", "rustc", "the rust shared library linker")
+ checker.check_toolchain(config, "rc-ld", "", "rustc", "the rust linker")
end
-- check it
diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua
index 4a7955ecc..63c557cf2 100644
--- a/xmake/platforms/windows/check.lua
+++ b/xmake/platforms/windows/check.lua
@@ -228,7 +228,10 @@ function _check_toolchains(config)
checker.check_toolchain(config, "dc-ld", "", "gdc", "the dlang linker")
-- check for rust tools
- checker.check_toolchain(config, "rc", "", "rustc", "the rust compiler")
+ checker.check_toolchain(config, "rc", "", "rustc", "the rust compiler")
+ checker.check_toolchain(config, "rc-ar", "", "rustc", "the rust static library archiver")
+ checker.check_toolchain(config, "rc-sh", "", "rustc", "the rust shared library linker")
+ checker.check_toolchain(config, "rc-ld", "", "rustc", "the rust linker")
end
-- check the debugger