diff options
| author | Martin Ridgers <[email protected]> | 2021-11-17 13:27:11 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-17 13:49:28 +0100 |
| commit | 281ab5d9034c10b1a457eeb0db8cb180384cf7ca (patch) | |
| tree | eba28718a8614713d7884f366197405202bb26a7 /xmake.lua | |
| parent | Added a "zenmesh" config option (diff) | |
| download | zen-281ab5d9034c10b1a457eeb0db8cb180384cf7ca.tar.xz zen-281ab5d9034c10b1a457eeb0db8cb180384cf7ca.zip | |
Enabled the use-of-undefined-preprocessor macro warning
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -61,6 +61,13 @@ if is_os("linux") then add_cxxflags("-Wno-missing-field-initializers") end +-- Turn use of undefined cpp macros into errors +if is_os("windows") then + add_cxxflags("/we4668") +else + add_cxxflags("-Wundef") +end + function add_define_by_config(define, config_name) local value = has_config(config_name) and 1 or 0 add_defines(define.."="..value) |