aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-04 17:23:36 +0100
committerGitHub Enterprise <[email protected]>2026-03-04 17:23:36 +0100
commit1f83b48a20bf90f41e18867620c5774f3be6280d (patch)
treead2b948dfd64ff55249a361ba018e6771de041d7 /src/zencore/xmake.lua
parentmore feedback during auth option parsing (#806) (diff)
downloadzen-1f83b48a20bf90f41e18867620c5774f3be6280d.tar.xz
zen-1f83b48a20bf90f41e18867620c5774f3be6280d.zip
Fixing various compiler issues (#807)
Compile fixes for various versions of gcc,clang (non-UE)
Diffstat (limited to 'src/zencore/xmake.lua')
-rw-r--r--src/zencore/xmake.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zencore/xmake.lua b/src/zencore/xmake.lua
index 2f81b7ec8..ab842f6ed 100644
--- a/src/zencore/xmake.lua
+++ b/src/zencore/xmake.lua
@@ -14,7 +14,12 @@ target('zencore')
end)
set_configdir("include/zencore")
add_files("**.cpp")
- add_files("trace.cpp", {unity_ignored = true })
+ if is_plat("linux") and not (get_config("toolchain") or ""):find("clang") then
+ -- GCC false positives in thirdparty trace.h (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100137)
+ add_files("trace.cpp", {unity_ignored = true, force = {cxxflags = {"-Wno-stringop-overread", "-Wno-dangling-pointer"}} })
+ else
+ add_files("trace.cpp", {unity_ignored = true })
+ end
add_files("testing.cpp", {unity_ignored = true })
if has_config("zenrpmalloc") then