Merged in xpol/premake-dev (pull request #39)
Add NoWarnings flags support for gcc.
This commit is contained in:
commit
24a5ba03ee
@ -97,6 +97,7 @@
|
||||
EnableSSE2 = "-msse2",
|
||||
ExtraWarnings = "-Wall -Wextra",
|
||||
FatalWarnings = "-Werror",
|
||||
NoWarnings = "-w",
|
||||
FloatFast = "-ffast-math",
|
||||
FloatStrict = "-ffloat-store",
|
||||
NoFramePointer = "-fomit-frame-pointer",
|
||||
|
@ -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.
|
||||
--
|
||||
|
Reference in New Issue
Block a user