Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,15 @@ option(STATIC_ANALYSIS "Enable compiler static analysis")
if(STANDALONE)
if(MSVC AND is_clang)
message(STATUS "Not enabling IPO/LTO due to MSVC LLVM not supporting it")
elseif(is_clang AND SANITIZE_ADDRESS AND CMAKE_CXX_COMPILER_VERSION
VERSION_GREATER_EQUAL 17.0)
elseif(is_clang AND SANITIZE_ADDRESS AND
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 17.0 AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 21.0)
# /usr/bin/ld: error: Failed to link module
# ../libunodb_qsbr.a.llvm.3080.qsbr.cpp: Expected at most one ThinLTO module
# per bitcode file
# ...
message(STATUS
"Not enabling IPO/LTO due to LLVM clang 17 w/ AddressSanitizer bug")
"Not enabling IPO/LTO due to LLVM clang 17-20 w/ AddressSanitizer bug")
else()
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_SUPPORT_ERROR LANGUAGES
Expand Down
Loading