Merged in xpol/premake-dev (pull request #39)

Add NoWarnings flags support for gcc.
This commit is contained in:
Jason Perkins 2013-09-13 11:16:37 -04:00
commit 24a5ba03ee
2 changed files with 11 additions and 0 deletions

View File

@ -97,6 +97,7 @@
EnableSSE2 = "-msse2",
ExtraWarnings = "-Wall -Wextra",
FatalWarnings = "-Werror",
NoWarnings = "-w",
FloatFast = "-ffast-math",
FloatStrict = "-ffloat-store",
NoFramePointer = "-fomit-frame-pointer",

View File

@ -84,7 +84,17 @@
test.isequal({ "-Werror" }, gcc.getcflags(cfg))
end
function suite.cflags_onExtraWarnings()
flags { "ExtraWarnings" }
prepare()
test.isequal({ "-Wall -Wextra" }, gcc.getcflags(cfg))
end
function suite.cflags_onNoWarnings()
flags { "NoWarnings" }
prepare()
test.isequal({ "-w" }, gcc.getcflags(cfg))
end
--
-- Check the translation of CXXFLAGS.
--