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 = { 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"
} }
} }

View File

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