summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-29 22:35:58 +0800
committerruki <[email protected]>2020-04-29 09:35:53 +0800
commit1902b2515b884f4af7db49bc6ddcd0e0224369c2 (patch)
tree44fd220f8fc4447253441dc80b7df24a1f7492f8
parentcb3950ef7cb3ee881411dfb1c985c1f9c69119ef (diff)
fix mode.xsan
-rw-r--r--xmake/rules/mode/xmake.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua
index 5fb0dc0ff..e1937dd97 100644
--- a/xmake/rules/mode/xmake.lua
+++ b/xmake/rules/mode/xmake.lua
@@ -142,6 +142,7 @@ rule("mode.asan")
target:add("cxflags", "-fsanitize=address")
target:add("mxflags", "-fsanitize=address")
target:add("ldflags", "-fsanitize=address")
+ target:add("shflags", "-fsanitize=address")
end
end)
@@ -170,6 +171,7 @@ rule("mode.tsan")
target:add("cxflags", "-fsanitize=thread")
target:add("mxflags", "-fsanitize=thread")
target:add("ldflags", "-fsanitize=thread")
+ target:add("shflags", "-fsanitize=thread")
end
end)
@@ -198,6 +200,7 @@ rule("mode.msan")
target:add("cxflags", "-fsanitize=memory")
target:add("mxflags", "-fsanitize=memory")
target:add("ldflags", "-fsanitize=memory")
+ target:add("shflags", "-fsanitize=memory")
end
end)
@@ -226,6 +229,7 @@ rule("mode.lsan")
target:add("cxflags", "-fsanitize=leak")
target:add("mxflags", "-fsanitize=leak")
target:add("ldflags", "-fsanitize=leak")
+ target:add("shflags", "-fsanitize=leak")
end
end)
@@ -254,6 +258,7 @@ rule("mode.ubsan")
target:add("cxflags", "-fsanitize=undefined")
target:add("mxflags", "-fsanitize=undefined")
target:add("ldflags", "-fsanitize=undefined")
+ target:add("shflags", "-fsanitize=undefined")
end
end)
@@ -302,6 +307,7 @@ rule("mode.check")
target:add("cxflags", "-fsanitize=address", "-ftrapv")
target:add("mxflags", "-fsanitize=address", "-ftrapv")
target:add("ldflags", "-fsanitize=address")
+ target:add("shflags", "-fsanitize=address")
end
end
end)