diff options
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index c179e5b5392..8ed2f8cc8d0 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -140,6 +140,11 @@ newoption { } newoption { + trigger = "NOWERROR", + description = "NOWERROR", +} + +newoption { trigger = "USE_BGFX", description = "Use of BGFX.", allowed = { @@ -191,8 +196,14 @@ end configuration { "vs*" } flags { "ExtraWarnings", + } + if _OPTIONS["NOWERROR"]==nil then + flags{ "FatalWarnings", } + end + + configuration { "Debug", "vs*" } flags { "Symbols", @@ -440,11 +451,11 @@ end } -- add the error warning flag - --ifndef NOWERROR +if _OPTIONS["NOWERROR"]==nil then buildoptions { "-Werror", } - +end -- if we are optimizing, include optimization options --ifneq ($(),0) |