aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thirdparty/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua
index 4841b1bdf..5e4d9435d 100644
--- a/thirdparty/xmake.lua
+++ b/thirdparty/xmake.lua
@@ -89,6 +89,11 @@ target("blake3")
add_files("blake3/c/blake3.c", "blake3/c/blake3_dispatch.c", "blake3/c/blake3_portable.c")
add_headerfiles("blake3/c/blake3.h")
+ if is_os("windows") then
+ add_cflags("/experimental:c11atomics")
+ add_cflags("/wd4245") -- conversion from 'type1' to 'type2', possible loss of data
+ end
+
if is_arch("x86_64", "x64") then
if is_subhost("msys", "cygwin") then
add_files("blake3/c/*x86-64_windows_gnu.S")