This commit is contained in:
xpol 2012-11-15 10:36:43 +08:00
commit a61185f506
2 changed files with 12 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",
@ -308,6 +309,7 @@
EnableSSE2 = "-msse2",
ExtraWarnings = "-Wall",
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.
--