aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 13f6fdaca..27abf9b09 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -329,6 +329,10 @@ if is_os("windows") then
add_cxxflags("/Zc:u8EscapeEncoding") -- Enable UTF-8 encoding for u8 string literals (clang does this by default)
add_cxxflags("/Zc:preprocessor") -- Enable preprocessor conformance mode
add_cxxflags("/Zc:inline") -- Enforce inline semantics
+ if is_mode("release") then
+ add_cflags("/Zo") -- better debug info for optimized code
+ add_cxxflags("/Zo") -- better debug info for optimized code
+ end
end
-- add_ldflags("/MAP")
@@ -462,6 +466,7 @@ option("zentrace")
option_end()
add_define_by_config("ZEN_WITH_TRACE", "zentrace")
+
set_warnings("allextra", "error")
set_languages("cxx20")