disable exceptions and rtti

Signed-off-by: Steven Noonan <steven@valvesoftware.com>
This commit is contained in:
Steven Noonan
2018-04-02 13:40:26 -07:00
parent baf230b70d
commit 7f92f7c4dc
2 changed files with 8 additions and 8 deletions
+7 -1
View File
@@ -29,6 +29,11 @@ flags_common = [
'-fno-strict-aliasing',
]
flags_cxx = [
'-fno-rtti',
'-fno-exceptions',
]
warn_flags_common = [
'-Wall',
#'-Wextra',
@@ -56,6 +61,7 @@ cpp_flags = [
'-DHAVE_OPENSSL',
'-DENABLE_OPENSSLCONNECTION',
'-DCRYPTO_DISABLE_ENCRYPT_WITH_PASSWORD',
'-DGOOGLE_PROTOBUF_NO_RTTI',
]
target_os = target_machine.system()
@@ -89,7 +95,7 @@ endforeach
cxx_flags = []
cxx_flags += cxx_compiler.first_supported_argument(['-std=c++11', '-std=c++0x'])
foreach arg : warn_flags_cxx + flags_common + warn_flags_common
foreach arg : warn_flags_cxx + flags_common + flags_cxx + warn_flags_common
if cxx_compiler.has_argument(arg)
cxx_flags += [ arg ]
endif
+1 -7
View File
@@ -402,13 +402,7 @@ I CUtlLinkedList<T,I>::AllocInternal( bool multilist )
if ( elem == InvalidIndex() )
{
#if defined(_WIN32) && !defined(GNU_COMPILER)
Error("%s overflow!\n", typeid(*this).raw_name());
#else
#if ( !defined(_PS3) || defined(_DEBUG) )
Error("%s overflow!\n", typeid(*this).name());
#endif
#endif
Error("CUtlLinkedList overflow!\n");
}
}
else