diff options
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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") |