added NOWERROR support (nw)

This commit is contained in:
Miodrag Milanovic 2015-03-28 07:03:44 +01:00
parent cf02c07fda
commit ce5ccff643
2 changed files with 18 additions and 2 deletions

View File

@ -275,6 +275,11 @@ endif
ifdef USE_BGFX ifdef USE_BGFX
PARAMS+= --USE_BGFX=$(USE_BGFX) PARAMS+= --USE_BGFX=$(USE_BGFX)
endif endif
ifdef NOWERROR
PARAMS+= --NOWERROR=$(NOWERROR)
endif
# extension for executables # extension for executables
EXE = EXE =

View File

@ -139,6 +139,11 @@ newoption {
description = "Force DRC C backend.", description = "Force DRC C backend.",
} }
newoption {
trigger = "NOWERROR",
description = "NOWERROR",
}
newoption { newoption {
trigger = "USE_BGFX", trigger = "USE_BGFX",
description = "Use of BGFX.", description = "Use of BGFX.",
@ -191,8 +196,14 @@ end
configuration { "vs*" } configuration { "vs*" }
flags { flags {
"ExtraWarnings", "ExtraWarnings",
}
if _OPTIONS["NOWERROR"]==nil then
flags{
"FatalWarnings", "FatalWarnings",
} }
end
configuration { "Debug", "vs*" } configuration { "Debug", "vs*" }
flags { flags {
"Symbols", "Symbols",
@ -440,11 +451,11 @@ end
} }
-- add the error warning flag -- add the error warning flag
--ifndef NOWERROR if _OPTIONS["NOWERROR"]==nil then
buildoptions { buildoptions {
"-Werror", "-Werror",
} }
end
-- if we are optimizing, include optimization options -- if we are optimizing, include optimization options
--ifneq ($(),0) --ifneq ($(),0)