summaryrefslogtreecommitdiff
path: root/xmake/rules/rust/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-29 23:37:32 +0800
committerruki <[email protected]>2024-05-29 23:37:32 +0800
commitb645fd80b481caf5b1ad48d57d9a6cfd3cf6841c (patch)
treebc7f8b68a13fa43544103cfc4a1fb5d785988217 /xmake/rules/rust/xmake.lua
parent4ffaa7f613818c915baa56849124acc2227398cb (diff)
add abort panic
Diffstat (limited to 'xmake/rules/rust/xmake.lua')
-rw-r--r--xmake/rules/rust/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/rust/xmake.lua b/xmake/rules/rust/xmake.lua
index 2e9295cfd..c53bb4eb3 100644
--- a/xmake/rules/rust/xmake.lua
+++ b/xmake/rules/rust/xmake.lua
@@ -61,6 +61,9 @@ rule("rust.build")
-- set edition
local edition = target:values("rust.edition") or "2018"
target:add("rcflags", "--edition", edition, {force = true})
+
+ -- set panic
+ target:add("rcflags", "-C panic=abort", {force = true})
end)
on_build("build.target")