Update msc tools to new omitframepointer API

This commit is contained in:
thomas desveaux 2018-04-15 18:13:56 +02:00
parent b21b43aa92
commit 9eb81bd228
2 changed files with 15 additions and 1 deletions

View File

@ -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"
}
}

View File

@ -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()