Skip to content

Commit

Permalink
Remove LLVM -fno-exceptions flag
Browse files Browse the repository at this point in the history
Remove the LLVM -fno-exceptions flag from the COMPILE_FLAGS
property of the smokegen target. This fixes commonqt5, issue #4.
  • Loading branch information
hakonhagland authored and luismbo committed Mar 9, 2022
1 parent b3e3588 commit 8f88d33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ target_link_libraries(smokegen
set_target_properties(smokegen PROPERTIES COMPILE_DEFINITIONS __GENERATOR_BUILDING ENABLE_EXPORTS TRUE)
set(LLVM_REQUIRES_RTTI ON)
llvm_update_compile_flags(smokegen)
get_target_property(_compile_flags smokegen COMPILE_FLAGS)
list(FILTER _compile_flags EXCLUDE REGEX "[ ]?-fno-exceptions")
set_target_properties(smokegen PROPERTIES COMPILE_FLAGS "${_compile_flags}")
target_compile_features(smokegen PRIVATE cxx_nullptr)
set_property(
SOURCE
Expand Down

0 comments on commit 8f88d33

Please sign in to comment.