We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7de53a8 commit 4a4804bCopy full SHA for 4a4804b
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -988,6 +988,9 @@ if(LLVM_USE_SANITIZER)
988
endif()
989
# Prepare ASAN runtime if needed
990
if (LLVM_USE_SANITIZER MATCHES ".*Address.*")
991
+ # lld string tail merging interacts badly with ASAN on Windows, turn it off here
992
+ # See https://github.com/llvm/llvm-project/issues/62078
993
+ append("/opt:nolldtailmerge" CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
994
if (${CMAKE_MSVC_RUNTIME_LIBRARY} MATCHES "^(MultiThreaded|MultiThreadedDebug)$")
995
append("/wholearchive:clang_rt.asan-${arch}.lib /wholearchive:clang_rt.asan_cxx-${arch}.lib"
996
CMAKE_EXE_LINKER_FLAGS)
0 commit comments