From bbf172b51882447e9406e7441fb30df7ec8405a0 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 12 Jul 2019 14:25:18 -0400 Subject: [PATCH] Explicitly remove RTTI in the top-level build config Fixes #1831 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index acbd266b..5638fabe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,8 @@ else() set(CMAKE_CXX_EXTENSIONS OFF) endif() +add_compile_options(-fno-rtti) + function(glslang_set_link_args TARGET) # For MinGW compiles, statically link against the GCC and C++ runtimes. # This avoids the need to ship those runtimes as DLLs.