mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[cmake] Pass /manifest:no to the linker when asan is enabled
This is a workaround for PR24476. llvm-svn: 245945
This commit is contained in:
parent
776683223a
commit
ef6f724429
@ -469,6 +469,10 @@ macro(append_common_sanitizer_flags)
|
||||
if (CMAKE_LINKER MATCHES "lld-link.exe")
|
||||
# Use DWARF debug info with LLD.
|
||||
append("-gdwarf" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
||||
# Pass /MANIFEST:NO so that CMake doesn't run mt.exe on our binaries.
|
||||
# Adding manifests with mt.exe breaks LLD's symbol tables. See PR24476.
|
||||
append("/MANIFEST:NO"
|
||||
CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
|
||||
else()
|
||||
# Enable codeview otherwise.
|
||||
append("/Z7" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user