This is an archive of the discontinued LLVM Phabricator instance.

[build] Add LLVM_LOCAL_RPATH which can set an rpath on just unit test binaries
ClosedPublic

Authored by thakis on May 25 2020, 5:56 PM.

Details

Summary

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.

Diff Detail

Event Timeline

thakis created this revision.May 25 2020, 5:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2020, 5:56 PM
Herald added a subscriber: mgorny. · View Herald Transcript
hans accepted this revision.May 26 2020, 1:09 AM

Nice, thanks!

This revision is now accepted and ready to land.May 26 2020, 1:09 AM
This revision was automatically updated to reflect the committed changes.