Go to file
Michal Gorny 7d0f0e3eb8 [test] Use LLD-specific binary&library dirs when building stand-alone
Use both LLD- and LLVM-specific binary&library directories when LLD is
being built stand-alone. This ensures that the freshly built tools and
libraries are found and used correctly.

Without this patch, the test suite uses LLVM_TOOLS_DIR and LLVM_LIBS_DIR
to locate lld, and set PATH and LD_LIBRARY_PATH. When doing
a stand-alone builds, these variables represent the installed LLVM.
As a result, tests either fail due to missing lld executables/libraries
or use an earlier installed LLD version rather than the one being built.

To solve this, an additional LLD_TOOLS_DIR and LLD_LIBS_DIR variables
are added that are populated using LLVM_*_OUTPUT_INTDIR. Those variables
are populated with directories used to output built executables
and libraries. In stand-alone builds, they represent the directories
used by LLD. In integrated builds, they have the same values as
LLVM_*_DIR and therefore using them does not harm.

The new variables are prepended to PATH and LD_LIBRARY_PATH to ensure
that freshly built binaries are preferred over potentially earlier
installed ones. Furthermore, the resulting PATH is used to locate tools
for substitutions since the search includes both tools built as part of
LLD and of LLVM.

Differential Revision: https://reviews.llvm.org/D29335

llvm-svn: 294507
2017-02-08 20:08:25 +00:00
clang Don't crash on 'decltype(auto)::'. Rather than treating it as a meaningless 2017-02-08 19:58:48 +00:00
clang-tools-extra [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.py 2017-02-08 17:50:24 +00:00
compiler-rt [sanitizer] if WINAPI is already defined, do not redefine it 2017-02-08 18:34:05 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Add logb builtin 2017-01-18 03:14:10 +00:00
libcxx Update info for LWG 2665 in upcoming_meeting.html 2017-02-08 19:04:18 +00:00
libcxxabi Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are "<special-name> ::= TW <object name>" for wrapper variables or "<special-name> ::= TH <object name>" for initialization variables. 2017-01-31 15:18:56 +00:00
libunwind Revert "DWARF: convert error logs to _LIBUNWIND_LOG" 2017-01-27 02:26:52 +00:00
lld [test] Use LLD-specific binary&library dirs when building stand-alone 2017-02-08 20:08:25 +00:00
lldb [LLDB][MIPS] Fix TestMiExec and TestMiData failures 2017-02-08 07:42:56 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [SLP] Additional test to check correct work of horizontal reductions, 2017-02-08 19:52:46 +00:00
openmp [libomptarget] Align test code with runtime/ 2017-02-07 06:58:15 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [NFC] Make ScheduleTreeOptimizer::optimizeBand return a schedule node optimized 2017-02-08 13:29:06 +00:00