summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rustc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-03 22:18:36 +0800
committerruki <[email protected]>2019-04-03 07:51:38 +0800
commitadbcc87f0699702c32fa8dc63aa8aafaa1deca9d (patch)
treee0bc6b981218c77081878e2ec1ff0d14296c3c01 /xmake/modules/core/tools/rustc.lua
parent09a1f710f009c7b90deea8a0e2c788551c03e66c (diff)
improve linker
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
-rw-r--r--xmake/modules/core/tools/rustc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua
index d98d96e5a..0fa38598a 100644
--- a/xmake/modules/core/tools/rustc.lua
+++ b/xmake/modules/core/tools/rustc.lua
@@ -31,13 +31,13 @@ import("core.project.project")
function init(self)
-- init arflags
- self:set("arflags", "--crate-type=lib")
+ self:set("rc-arflags", "--crate-type=lib")
-- init shflags
- self:set("shflags", "--crate-type=dylib")
+ self:set("rc-shflags", "--crate-type=dylib")
-- init ldflags
- self:set("ldflags", "--crate-type=bin")
+ self:set("rc-ldflags", "--crate-type=bin")
-- init the file formats
self:set("formats", { static = "lib$(name).rlib" })