diff options
| author | ruki <[email protected]> | 2017-02-23 13:42:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-23 13:42:17 +0800 |
| commit | 009c17b89cd33cf7915f82d0d994233238a6bc4c (patch) | |
| tree | 3ab555773f156f2e55971a4b1015516fb87cc024 /xmake/platforms | |
| parent | 3ed1f42166dbe310aa245678adfc95a2de1f2f14 (diff) | |
add rust tools and language
Diffstat (limited to 'xmake/platforms')
| -rw-r--r-- | xmake/platforms/linux/check.lua | 6 | ||||
| -rw-r--r-- | xmake/platforms/linux/load.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/macosx/check.lua | 6 | ||||
| -rw-r--r-- | xmake/platforms/macosx/load.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/windows/check.lua | 6 |
5 files changed, 26 insertions, 0 deletions
diff --git a/xmake/platforms/linux/check.lua b/xmake/platforms/linux/check.lua index e24235f8f..e7faa5154 100644 --- a/xmake/platforms/linux/check.lua +++ b/xmake/platforms/linux/check.lua @@ -118,6 +118,12 @@ function _check_toolchains(config) checker.check_toolchain(config, "dc-ld", "", "dmd", "the dlang linker") checker.check_toolchain(config, "dc-ld", "", "ldc2", "the dlang linker") 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-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/linux/load.lua b/xmake/platforms/linux/load.lua index cad303f7a..caf20d6ba 100644 --- a/xmake/platforms/linux/load.lua +++ b/xmake/platforms/linux/load.lua @@ -77,6 +77,10 @@ function main() _g["dc-shflags"] = {} _g["dc-ldflags"] = {} + -- init flags for rust + _g["rc-shflags"] = {} + _g["rc-ldflags"] = {} + -- ok return _g end diff --git a/xmake/platforms/macosx/check.lua b/xmake/platforms/macosx/check.lua index 91c18a055..92af39162 100644 --- a/xmake/platforms/macosx/check.lua +++ b/xmake/platforms/macosx/check.lua @@ -75,6 +75,12 @@ function _check_toolchains(config) checker.check_toolchain(config, "dc-ld", "", "dmd", "the dlang linker") checker.check_toolchain(config, "dc-ld", "", "ldc2", "the dlang linker") 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-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/load.lua b/xmake/platforms/macosx/load.lua index 26104e086..d03a416f1 100644 --- a/xmake/platforms/macosx/load.lua +++ b/xmake/platforms/macosx/load.lua @@ -67,6 +67,10 @@ function main() _g["dc-shflags"] = {} _g["dc-ldflags"] = {} + -- init flags for rust + _g["rc-shflags"] = {} + _g["rc-ldflags"] = {} + -- ok return _g end diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua index ff93704f2..d178d4ff4 100644 --- a/xmake/platforms/windows/check.lua +++ b/xmake/platforms/windows/check.lua @@ -226,6 +226,12 @@ function _check_toolchains(config) checker.check_toolchain(config, "dc-ld", "", "dmd", "the dlang linker") checker.check_toolchain(config, "dc-ld", "", "ldc2", "the dlang linker") 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-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 |
