Go to file
Eric Fiselier 6f9da55c0f [libcxx] Add support for building and testing with an ABI library not along linker paths
Summary:
This patch adds support for building/testing libc++ with an ABI library that the linker would not normally find.

- `CMAKE_LIBRARY_PATH` is used to specify the list of search directories.
- The ABI library is now found using `find_library` instead of assuming its along the linker's search path.
- `CMAKE_LIBRARY_PATH` is passed to our LIT config as `library_paths`.
- For each path in `library_paths` the following flags are added `-L<path> -Wl,-rpath -Wl,<path>`

Some changes in existing behavior were also added:
- `target_link_libraries` is now passed the ABI library file instead of the library name. Ex `target_link_libraries(cxx "/usr/lib/libc++abi.so")` vs `target_link_libraries(cxx "c++abi")`.
- `-Wl,-rpath -Wl,<path>` is now used on OSX to link to libc++ instead of env['DYLD_LIBRARY_PATH'] if `use_system_lib=False`.




Reviewers: mclow.lists, danalbert, EricWF

Reviewed By: EricWF

Subscribers: emaste, cfe-commits

Differential Revision: http://reviews.llvm.org/D5038

llvm-svn: 220118
2014-10-18 01:15:17 +00:00
clang Append the %itanium_abi_host_triple substitution unconditionally 2014-10-18 00:05:26 +00:00
clang-tools-extra [clang-tidy] Minor fixes for the NamespaceCommentCheck. 2014-10-16 15:11:54 +00:00
compiler-rt [asan] the run-time part of intra-object-overflow detector (-fsanitize-address-field-padding=1). Note that all of this is still experimental; don't use unless you are brave. 2014-10-17 01:22:37 +00:00
debuginfo-tests Always compile debuginfo-tests for the host triple 2014-10-16 23:43:34 +00:00
libclc r600: Use llvm intrinsic to read work dimension information 2014-10-15 15:08:06 +00:00
libcxx [libcxx] Add support for building and testing with an ABI library not along linker paths 2014-10-18 01:15:17 +00:00
libcxxabi Add an .arcconfig for libc++abi. 2014-10-17 16:48:56 +00:00
lld Hardcode the list of ELF targets here rather than using a glob. 2014-10-18 00:56:31 +00:00
lldb Fixed python API event test cases. 2014-10-17 23:58:27 +00:00
llvm [SROA] Change how SROA does vector-based promotion of allocas to handle 2014-10-18 00:44:02 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly [Refactor][NfC] ReportLevel should be used as a bool not an int 2014-10-15 23:24:28 +00:00