Commit aca86045 by Austin Kinross Committed by Geoff Lang

Disable RTTI in VS release builds

Chrome forbids RTTI, but standalone ANGLE currently allows it. Disallowing RTTI in standalone release builds brings ANGLE and Chrome closer, and prevents accidental use of dynamic_cast in ANGLE. It also reduces binary size. Win10 libGLESv2 is 47KB smaller after this. BUG=angleproject:1239 Change-Id: Ib5fb50df66c3a94042e2d9bbb062c0d025cf3eef Reviewed-on: https://chromium-review.googlesource.com/314831 Tryjob-Request: Austin Kinross <aukinros@microsoft.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarAustin Kinross <aukinros@microsoft.com>
parent c73c9940
......@@ -99,7 +99,6 @@
'ExceptionHandling': '0',
'EnableFunctionLevelLinking': 'true',
'MinimalRebuild': 'false',
'RuntimeTypeInfo': 'true',
'WarningLevel': '4',
},
'VCLinkerTool':
......@@ -142,6 +141,7 @@
{
'Optimization': '0', # /Od
'BasicRuntimeChecks': '3',
'RuntimeTypeInfo': 'true',
'conditions':
[
['angle_build_winrt==1',
......@@ -200,6 +200,7 @@
'VCCLCompilerTool':
{
'Optimization': '2', # /Os
'RuntimeTypeInfo': 'false',
'conditions':
[
['angle_build_winrt==1',
......
......@@ -1184,9 +1184,8 @@
{
'VCCLCompilerTool':
{
# dEQP requires exceptions and RTTI
# dEQP requires exceptions
'ExceptionHandling': 1,
'RuntimeTypeInfo': 'true',
},
'VCLinkerTool':
{
......@@ -1216,6 +1215,17 @@
},
},
},
'Release_Base':
{
'msvs_settings':
{
'VCCLCompilerTool':
{
'RuntimeTypeInfo': 'true', # dEQP needs RTTI
},
},
},
},
# Re-enable RTTI and exceptions, dEQP needs them.
'cflags_cc!':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment