Try to fix sanitizer CI

This commit is contained in:
Jérôme Leclercq
2022-03-06 10:59:05 +01:00
parent 95742b6ba3
commit ca0ab34f32
7 changed files with 102 additions and 92 deletions

11
xmake/rules/mode.fuzz.lua Normal file
View File

@@ -0,0 +1,11 @@
rule("mode.fuzz")
on_config(function (target)
if is_mode("fuzz") then
target:set("symbols", "debug")
target:add("cxflags", "-fsanitize=address,fuzzer")
target:add("mxflags", "-fsanitize=address,fuzzer")
target:add("ldflags", "-fsanitize=address,fuzzer")
target:add("shflags", "-fsanitize=address,fuzzer")
end
end)