Skip to content

Commit 7ee4a56

Browse files
authored
Add llvm compile flags to cpp2rust_core (#184)
Ensure `cpp2rust_core` is compiled with flags consistent with LLVM's. This fixes linking issues when using LLVM builds with RTTI disabled.
1 parent 32ffacf commit 7ee4a56

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp2rust/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ list(REMOVE_ITEM CORE_SOURCES
55
)
66

77
add_library(cpp2rust_core STATIC ${CORE_SOURCES})
8+
llvm_update_compile_flags(cpp2rust_core)
89

910
target_link_libraries(cpp2rust_core PUBLIC
1011
clangAST

0 commit comments

Comments
 (0)