Replace usages of NoExceptions and NoRTTI flags with exceptionhandling() and rtti()
This commit is contained in:
parent
4dc9745363
commit
2a608f4ca4
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
@ -199,7 +199,7 @@
|
||||
--
|
||||
|
||||
function suite.cflags_onNoExceptions()
|
||||
flags { "NoExceptions" }
|
||||
exceptionhandling "Off"
|
||||
prepare()
|
||||
test.contains({ "-fno-exceptions" }, gcc.getcxxflags(cfg))
|
||||
end
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user