summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rustc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
-rw-r--r--xmake/modules/core/tools/rustc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua
index 7be852edd..8df967401 100644
--- a/xmake/modules/core/tools/rustc.lua
+++ b/xmake/modules/core/tools/rustc.lua
@@ -40,8 +40,7 @@ function init(self)
_g.ldflags = { "--crate-type=bin" }
-- init the file formats
- _g.formats = {}
- _g.formats.static = {"lib", ".rlib"}
+ _g.formats = { static = "lib$(name).rlib" }
-- init buildmodes
_g.buildmodes =