Skip to content

Commit

Permalink
Disable RTTI on GCC
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Sep 5, 2024
1 parent f6b6a2a commit 1115265
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/noa/compiler/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1115265

Please sign in to comment.