aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 623a0d26a..3bf27c296 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -24,6 +24,8 @@ add_requires(
"vcpkg::zstd"
)
+add_requires("7z") -- for bundling
+
if not is_arch("arm64") then
add_requires(
"vcpkg::mimalloc",
@@ -63,6 +65,7 @@ if is_os("windows") then
"_WIN32_WINNT=0x0A00"
)
add_cxxflags("/d1trimfile:$(curdir)\\")
+ add_cxxflags("/Zc:preprocessor") -- Enable preprocessor conformance mode
-- add_ldflags("/MAP")
end