|
|
@@ -346,9 +346,14 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
|
|
|
add_compile_options(
|
|
|
-fasm-blocks
|
|
|
-fms-extensions
|
|
|
- -fwrapv # Treat signed integer overflow as two's complement
|
|
|
+ -fwrapv # Treat signed integer overflow as two's complement
|
|
|
)
|
|
|
|
|
|
+ # Only disable RTTI in release builds so that TrackAlloc works for debug and test builds
|
|
|
+ if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
|
+ add_compile_options(-fno-rtti)
|
|
|
+ endif()
|
|
|
+
|
|
|
# Clang -fsanitize.
|
|
|
if (CLANG_SANITIZE_SH)
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=${CLANG_SANITIZE_SH}")
|