[all-commits] [llvm/llvm-project] 5229dd: [build] Add LLVM_LOCAL_RPATH which can set an rpat...

Nico Weber via All-commits all-commits at lists.llvm.org
Tue May 26 03:24:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5229dd1366ab1423d66d3d16dddff6fbaee049d8
      https://github.com/llvm/llvm-project/commit/5229dd1366ab1423d66d3d16dddff6fbaee049d8
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/AddLLVM.cmake
    M llvm/docs/GettingStarted.rst

  Log Message:
  -----------
  [build] Add LLVM_LOCAL_RPATH which can set an rpath on just unit test binaries

After D80096, bots that build clang for distribution and that can't use
system gcc / libstdc++ need to pass a working rpath so that unit test
binaries can run. The method suggested in GettingStarted.rst works fine
for local development, but it results in an absolute local rpath ending
up even in distributed binaries like clang, which is both ugly and
unnecessary.

Add an explicit toggle that can be used to add an rpath only for the
non-distributed binaries that need it.

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




More information about the All-commits mailing list