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