Replace usages of NoExceptions and NoRTTI flags with exceptionhandling() and rtti()

This commit is contained in:
Jason Perkins 2015-06-23 16:53:10 -04:00 committed by Damien Courtois
parent 4dc9745363
commit 2a608f4ca4
4 changed files with 9 additions and 9 deletions

View File

@ -497,7 +497,7 @@
--
function suite.exceptions_onNoExceptions()
flags "NoExceptions"
exceptionhandling "Off"
prepare()
test.capture [[
<ClCompile>
@ -521,7 +521,7 @@
end
function suite.runtimeTypeInfo_onNoRTTI()
flags "NoRTTI"
rtti "Off"
prepare()
test.capture [[
<ClCompile>

View File

@ -175,15 +175,15 @@
function suite.remove_onExactValueMatch()
local f = field.get("flags")
configset.store(cset, f, { "Symbols", "WinMain", "NoRTTI" })
configset.store(cset, f, { "Symbols", "WinMain", "MFC" })
configset.remove(cset, f, { "WinMain" })
test.isequal({ "Symbols", "NoRTTI" }, configset.fetch(cset, f, {}))
test.isequal({ "Symbols", "MFC" }, configset.fetch(cset, f, {}))
end
function suite.remove_onMultipleValues()
local f = field.get("flags")
configset.store(cset, f, { "Symbols", "NoExceptions", "WinMain", "NoRTTI" })
configset.remove(cset, f, { "NoExceptions", "NoRTTI" })
configset.store(cset, f, { "Symbols", "Maps", "WinMain", "MFC" })
configset.remove(cset, f, { "Maps", "MFC" })
test.isequal({ "Symbols", "WinMain" }, configset.fetch(cset, f, {}))
end

View File

@ -199,7 +199,7 @@
--
function suite.cflags_onNoExceptions()
flags { "NoExceptions" }
exceptionhandling "Off"
prepare()
test.contains({ "-fno-exceptions" }, gcc.getcxxflags(cfg))
end

View File

@ -240,13 +240,13 @@
end
function suite.cflags_onNoExceptions()
flags "NoExceptions"
exceptionhandling "Off"
prepare()
test.missing("/EHsc", msc.getcxxflags(cfg))
end
function suite.cflags_onNoRTTI()
flags "NoRTTI"
rtti "Off"
prepare()
test.contains("/GR-", msc.getcxxflags(cfg))
end