1
0

revert: revert the delete of std::stacktrace in rust panic.

- i revert previous changes because currently code have not been compiled in clang.
This commit is contained in:
2025-09-28 22:02:54 +08:00
parent 6ecf6935d8
commit 31c624797f
2 changed files with 13 additions and 7 deletions

View File

@ -157,6 +157,15 @@ PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>
)
# Fix GCC std::stacktrace link error
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14)
target_link_libraries(YYCCommonplace PRIVATE stdc++exp)
else ()
target_link_libraries(YYCCommonplace PRIVATE stdc++_libbacktrace)
endif ()
endif ()
# Install binary and headers
install(TARGETS YYCCommonplace
EXPORT YYCCommonplaceTargets