Merged in grizzlynyo/premake-dev/FatalCompileWarnings_v201x_fix (pull request #114)

"FatalCompileWarnings" flags had no effect in vs201x actions
This commit is contained in:
Jason Perkins 2014-09-20 18:25:06 -04:00
parent a04b0aa9cd
commit fb8a77b902
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -352,7 +352,7 @@
--
function suite.treatWarningsAsError_onFatalWarnings()
flags { "FatalWarnings" }
flags { "FatalCompileWarnings" }
prepare()
test.capture [[
<ClCompile>

View File

@ -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>