From 7d1939d7dcc6f18f5cef9a4d443e44cfa4bdefa5 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 27 Feb 2017 13:19:51 +0800 Subject: fix rust checkers --- xmake/platforms/linux/check.lua | 3 +++ xmake/platforms/macosx/check.lua | 3 +++ xmake/platforms/windows/check.lua | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1