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
PARAMS+= --USE_BGFX=$(USE_BGFX)
endif
ifdef NOWERROR
PARAMS+= --NOWERROR=$(NOWERROR)
endif
# extension for executables
EXE =

View File

@ -139,6 +139,11 @@ newoption {
description = "Force DRC C backend.",
}
newoption {
trigger = "NOWERROR",
description = "NOWERROR",
}
newoption {
trigger = "USE_BGFX",
description = "Use of BGFX.",
@ -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)