diff options
| author | ruki <[email protected]> | 2020-05-24 21:10:49 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-24 21:10:49 +0800 |
| commit | fb2ba113ca1534249b0872002af0f133becd7e51 (patch) | |
| tree | d5bc9fb1553f622842712b18a7959a0c08a92d63 /xmake/modules/core/tools/rustc.lua | |
| parent | dd09a2264181f82a0b6aefb38dce5c92fb3af8fe (diff) | |
| parent | 5ad2eaee8cd65987359dbdfc5149bdd61b9260fc (diff) | |
Merge pull request #792 from xmake-io/toolchain
Improve to detect cross-compilation toolchains
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rustc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua index 227c6ad43..0ec83c803 100644 --- a/xmake/modules/core/tools/rustc.lua +++ b/xmake/modules/core/tools/rustc.lua @@ -27,13 +27,13 @@ import("core.project.project") function init(self) -- init arflags - self:set("rc-arflags", "--crate-type=lib") + self:set("rcarflags", "--crate-type=lib") -- init shflags - self:set("rc-shflags", "--crate-type=dylib") + self:set("rcshflags", "--crate-type=dylib") -- init ldflags - self:set("rc-ldflags", "--crate-type=bin") + self:set("rcldflags", "--crate-type=bin") -- init the file formats self:set("formats", { static = "lib$(name).rlib" }) |
