CMake: Disable libstdc++'s debug mode when compiling thunkgen

This allows the rest of the project to use _GLIBCXX_DEBUG.
This commit is contained in:
Tony Wasserka committed 2025-11-11 17:26:37 +01:00
1 parent 2febb524e9
commit 581f3263ed
1 file changed
+3
+3
View File
@@ -19,5 +19,8 @@ target_link_libraries(thunkgenlib PRIVATE OpenSSL::Crypto)
target_link_libraries(thunkgenlib PRIVATE fmt::fmt)
target_compile_definitions(thunkgenlib INTERFACE -DCLANG_RESOURCE_DIR="${CLANG_RESOURCE_DIR}")
# Clang's libtooling won't compile with libstdc++'s debug mode
target_compile_options(thunkgenlib PUBLIC "-U_GLIBCXX_DEBUG")
add_executable(thunkgen main.cpp)
target_link_libraries(thunkgen PRIVATE thunkgenlib)