Update msc tools to new omitframepointer API
This commit is contained in:
parent
b21b43aa92
commit
9eb81bd228
@ -38,7 +38,6 @@
|
||||
flags = {
|
||||
FatalCompileWarnings = "/WX",
|
||||
MultiProcessorCompile = "/MP",
|
||||
NoFramePointer = "/Oy",
|
||||
NoMinimalRebuild = "/Gm-",
|
||||
OmitDefaultLibrary = "/Zl"
|
||||
},
|
||||
@ -102,6 +101,9 @@
|
||||
},
|
||||
unsignedchar = {
|
||||
On = "/J",
|
||||
},
|
||||
omitframepointer = {
|
||||
On = "/Oy"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -72,6 +72,18 @@
|
||||
test.contains("/Oy", msc.getcflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cflags_onOmitFramePointer()
|
||||
omitframepointer "On"
|
||||
prepare()
|
||||
test.contains("/Oy", msc.getcflags(cfg))
|
||||
end
|
||||
|
||||
function suite.cflags_onNoOmitFramePointers()
|
||||
omitframepointer "Off"
|
||||
prepare()
|
||||
test.excludes("/Oy", msc.getcflags(cfg))
|
||||
end
|
||||
|
||||
function suite.ldflags_onLinkTimeOptimizations()
|
||||
flags "LinkTimeOptimization"
|
||||
prepare()
|
||||
|
Loading…
Reference in New Issue
Block a user