Merged in grizzlynyo/premake-dev/FatalCompileWarnings_v201x_fix (pull request #114)
"FatalCompileWarnings" flags had no effect in vs201x actions
This commit is contained in:
parent
a04b0aa9cd
commit
fb8a77b902
@ -1491,7 +1491,7 @@
|
||||
|
||||
|
||||
function m.treatWarningAsError(cfg)
|
||||
if cfg.flags.FatalLinkWarnings and cfg.warnings ~= "Off" then
|
||||
if cfg.flags.FatalCompileWarnings and cfg.warnings ~= "Off" then
|
||||
p.w('<TreatWarningAsError>true</TreatWarningAsError>')
|
||||
end
|
||||
end
|
||||
|
@ -352,7 +352,7 @@
|
||||
--
|
||||
|
||||
function suite.treatWarningsAsError_onFatalWarnings()
|
||||
flags { "FatalWarnings" }
|
||||
flags { "FatalCompileWarnings" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<ClCompile>
|
||||
|
@ -383,7 +383,7 @@
|
||||
|
||||
function suite.fatalWarnings_onDynamicLink()
|
||||
kind "ConsoleApp"
|
||||
flags { "FatalWarnings" }
|
||||
flags { "FatalLinkWarnings" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<Link>
|
||||
@ -396,7 +396,7 @@
|
||||
|
||||
function suite.fatalWarnings_onStaticLink()
|
||||
kind "StaticLib"
|
||||
flags { "FatalWarnings" }
|
||||
flags { "FatalLinkWarnings" }
|
||||
prepare()
|
||||
test.capture [[
|
||||
<Link>
|
||||
|
Loading…
Reference in New Issue
Block a user