diff options
-rw-r--r-- | makefile | 5 | ||||
-rw-r--r-- | scripts/genie.lua | 15 |
2 files changed, 18 insertions, 2 deletions
@@ -275,6 +275,11 @@ endif ifdef USE_BGFX PARAMS+= --USE_BGFX=$(USE_BGFX) endif + +ifdef NOWERROR +PARAMS+= --NOWERROR=$(NOWERROR) +endif + # extension for executables EXE = 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) |