summaryrefslogtreecommitdiff
path: root/xmake/rules/rust/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-13 13:46:36 +0800
committerruki <[email protected]>2021-11-13 13:46:36 +0800
commit6b684d5cc448124c31a51fff71e4043667677a57 (patch)
tree8ea5f63bf177eaad1e1d00d4f8533ac6dcd61cc3 /xmake/rules/rust/xmake.lua
parent8907c57014dedbd68da377cb25a92096c0c713d8 (diff)
add frameworks for rust
Diffstat (limited to 'xmake/rules/rust/xmake.lua')
-rw-r--r--xmake/rules/rust/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/rust/xmake.lua b/xmake/rules/rust/xmake.lua
index e0952b72e..f371692e1 100644
--- a/xmake/rules/rust/xmake.lua
+++ b/xmake/rules/rust/xmake.lua
@@ -36,6 +36,7 @@ rule("rust.build")
if cratetype == "staticlib" then
assert(target:is_static(), "target(%s) must be static kind for cratetype(staticlib)!", target:name())
target:add("arflags", "--crate-type=staticlib")
+ target:data_set("inherit.links.exportlinks", false)
elseif cratetype == "cdylib" then
assert(target:is_shared(), "target(%s) must be shared kind for cratetype(cdylib)!", target:name())
target:add("shflags", "--crate-type=cdylib")