aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/xmake.lua
diff options
context:
space:
mode:
authorDevin Doucette <[email protected]>2026-03-17 12:45:49 -0600
committerGitHub Enterprise <[email protected]>2026-03-17 19:45:49 +0100
commitc25cbbe44ec00491f725b52dadc4c7ec63ea0b27 (patch)
treec5317efbd79bc2f99bf85b8bcaf532b66d7f80d7 /thirdparty/xmake.lua
parentadd sanitizer options to xmake (#847) (diff)
downloadzen-c25cbbe44ec00491f725b52dadc4c7ec63ea0b27.tar.xz
zen-c25cbbe44ec00491f725b52dadc4c7ec63ea0b27.zip
Suppressed C5105 when building rpmalloc (#852)v5.7.23
Building rpmalloc can hit a warning in the Windows SDK. `C: \Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9572): warning C5105: macro expansion producing 'defined' has undefined behavior` Co-Authored-By: Stefan Boberg <[email protected]>
Diffstat (limited to 'thirdparty/xmake.lua')
-rw-r--r--thirdparty/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua
index e8832d50a..7377cf0f6 100644
--- a/thirdparty/xmake.lua
+++ b/thirdparty/xmake.lua
@@ -38,6 +38,7 @@ target('rpmalloc')
set_languages("c17", "cxx20")
if is_os("windows") and not (get_config("toolchain") or ""):find("clang") then
add_cflags("/experimental:c11atomics", {force=true, tools="cl"})
+ add_cflags("/wd5105", {tools="cl"})
end
add_defines("RPMALLOC_FIRST_CLASS_HEAPS=1", "ENABLE_STATISTICS=1", "ENABLE_OVERRIDE=0")
add_files("rpmalloc/rpmalloc.c")