Skip to content

Commit

Permalink
Properly share GCC sanitizer tables with Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeIsMeh committed Nov 10, 2024
1 parent ff19f59 commit 69bf538
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/tools/clang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
unsignedchar = gcc.shared.unsignedchar,
omitframepointer = gcc.shared.omitframepointer,
compileas = gcc.shared.compileas,
sanitize = gcc.shared.sanitize,
sanitize = table.merge(gcc.shared.sanitize, {
Fuzzer = "-fsanitize=fuzzer",
}),
visibility = gcc.shared.visibility,
inlinesvisibility = gcc.shared.inlinesvisibility
}
Expand Down Expand Up @@ -118,9 +120,6 @@
--

clang.cxxflags = table.merge(gcc.cxxflags, {
sanitize = {
Fuzzer = "-fsanitize=fuzzer",
},
})

function clang.getcxxflags(cfg)
Expand Down Expand Up @@ -254,9 +253,9 @@
end,
},
linker = gcc.ldflags.linker,
sanitize = {
Address = "-fsanitize=address",
},
sanitize = table.merge(gcc.ldflags.sanitize, {
Fuzzer = "-fsanitize=fuzzer",
}),
system = {
wii = "$(MACHDEP)",
}
Expand Down

0 comments on commit 69bf538

Please sign in to comment.