aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-13 17:06:39 +0100
committerStefan Boberg <[email protected]>2026-03-13 17:06:39 +0100
commit3abde8d88bde436dce423eae9edee0f4e8af915a (patch)
tree885ae916a94c9b350d72717666f43e78bef88d4e /thirdparty/xmake.lua
parentUnix Domain Socket auto discovery (#833) (diff)
downloadzen-3abde8d88bde436dce423eae9edee0f4e8af915a.tar.xz
zen-3abde8d88bde436dce423eae9edee0f4e8af915a.zip
Add clang-cl build support
- Add clang-cl warning suppressions in xmake.lua matching Linux/macOS set - Guard /experimental:c11atomics with {tools="cl"} for MSVC-only - Fix long long / int64_t redefinition in string.h for clang-cl - Fix unclosed namespace in callstacktrace.cpp #else branch - Fix missing override in httpplugin.cpp - Reorder WorkerPool fields to match designated initializer order - Use INVALID_SOCKET instead of SOCKET_ERROR for SOCKET comparisons
Diffstat (limited to 'thirdparty/xmake.lua')
-rw-r--r--thirdparty/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua
index b79d9ee82..59233649a 100644
--- a/thirdparty/xmake.lua
+++ b/thirdparty/xmake.lua
@@ -37,7 +37,7 @@ target('rpmalloc')
set_group('thirdparty')
set_languages("c17", "cxx20")
if is_os("windows") then
- add_cflags("/experimental:c11atomics", {force=true})
+ add_cflags("/experimental:c11atomics", {force=true, tools="cl"})
end
add_defines("RPMALLOC_FIRST_CLASS_HEAPS=1", "ENABLE_STATISTICS=1", "ENABLE_OVERRIDE=0")
add_files("rpmalloc/rpmalloc.c")
@@ -79,7 +79,7 @@ target("blake3")
add_includedirs("blake3/c", {public=true})
if is_os("windows") then
- add_cflags("/experimental:c11atomics")
+ add_cflags("/experimental:c11atomics", {tools="cl"})
add_cflags("/wd4245", {force = true}) -- conversion from 'type1' to 'type2', possible loss of data
elseif is_os("macosx") then
add_cflags("-Wno-unused-function")