Merge
This commit is contained in:
commit
3c099f27d5
@ -100,6 +100,7 @@
|
||||
EnableSSE2 = "-msse2",
|
||||
ExtraWarnings = "-Wall -Wextra",
|
||||
FatalWarnings = "-Werror",
|
||||
NoWarnings = "-w",
|
||||
FloatFast = "-ffast-math",
|
||||
FloatStrict = "-ffloat-store",
|
||||
NoFramePointer = "-fomit-frame-pointer",
|
||||
|
@ -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.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user