diff options
author | Brad King <brad.king@kitware.com> | 2016-07-11 20:28:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-11 20:30:02 (GMT) |
commit | 353222262a77e0c9f23dfde1dfb78bfb3fe96c31 (patch) | |
tree | 520facf5f671e906a6720934c912e205e28a3703 /Modules/CMakeParseImplicitLinkInfo.cmake | |
parent | 507aa256e517e33aa109b854b444b08863447cf4 (diff) | |
download | CMake-353222262a77e0c9f23dfde1dfb78bfb3fe96c31.zip CMake-353222262a77e0c9f23dfde1dfb78bfb3fe96c31.tar.gz CMake-353222262a77e0c9f23dfde1dfb78bfb3fe96c31.tar.bz2 |
CMakeParseImplicitLinkInfo: Exclude libclang_rt libraries
These libraries are used for Clang runtime analysis support with
flags like `-fsanitize=memory` and are not actually implicitly
linked libraries.
Fixes #16194.
Diffstat (limited to 'Modules/CMakeParseImplicitLinkInfo.cmake')
-rw-r--r-- | Modules/CMakeParseImplicitLinkInfo.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeParseImplicitLinkInfo.cmake b/Modules/CMakeParseImplicitLinkInfo.cmake index ef9a2eb..da029bc 100644 --- a/Modules/CMakeParseImplicitLinkInfo.cmake +++ b/Modules/CMakeParseImplicitLinkInfo.cmake @@ -124,7 +124,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var fwk_var log_var obj # We remove items that are not language-specific. set(implicit_libs "") foreach(lib IN LISTS implicit_libs_tmp) - if("x${lib}" MATCHES "^x(crt.*\\.o|gcc.*|System.*)$") + if("x${lib}" MATCHES "^x(crt.*\\.o|gcc.*|System.*|.*libclang_rt.*)$") set(log "${log} remove lib [${lib}]\n") elseif(IS_ABSOLUTE "${lib}") get_filename_component(abs "${lib}" ABSOLUTE) |