This commit is contained in:
xpol 2013-04-12 10:46:15 +08:00
commit 3c099f27d5
2 changed files with 11 additions and 0 deletions

View File

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

View File

@ -85,7 +85,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.
--