From 11152655296f166ac71788ee503c8280a330a20b Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 5 Sep 2024 16:41:55 -0400 Subject: [PATCH] Disable RTTI on GCC Signed-off-by: Juan Cruz Viotti --- cmake/noa/compiler/options.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/noa/compiler/options.cmake b/cmake/noa/compiler/options.cmake index b6cb29d..b1fc6e5 100644 --- a/cmake/noa/compiler/options.cmake +++ b/cmake/noa/compiler/options.cmake @@ -77,7 +77,11 @@ function(noa_add_default_options visibility target) # Enable vectorization of straight-line code for performance -fslp-vectorize) elseif(NOA_COMPILER_GCC) - # Newer versions of GCC (i.e. 14) seem to print a lot of false-positives here - target_compile_options("${target}" ${visibility} -Wno-dangling-reference) + target_compile_options("${target}" ${visibility} + # Newer versions of GCC (i.e. 14) seem to print a lot of false-positives here + -Wno-dangling-reference + + # Disables runtime type information + -fno-rtti) endif() endfunction()