Skip to content

Conversation

@dschuff
Copy link
Member

@dschuff dschuff commented Jun 3, 2020

Reland of #2864
Also ensure a relative install rpath by adding setup to each tool config.
The CMake code is cribbed from LLVM's implementation.

@dschuff dschuff marked this pull request as ready for review June 3, 2020 17:50
@dschuff dschuff requested a review from sbc100 June 3, 2020 17:50
Copy link
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably we should be doing some post-install testing? But I guess it would be pretty rare that this might break?

@dschuff
Copy link
Member Author

dschuff commented Jun 3, 2020

Yeah, I guess we'd need to do a test that runs it from the installation directory rather than the build directory, so we'd have to change the cmake install prefix. Do you know how we'd figure out what we should set it to on github actions?

@dschuff
Copy link
Member Author

dschuff commented Jun 3, 2020

Although this CL also sets BUILD_WITH_INSTALL_RPATH so now CMake doesn't actually change the rpath when it installs. So that means that we are testing the rpath when we run the tests from the build directory.

@dschuff
Copy link
Member Author

dschuff commented Jun 3, 2020

Confirmed that CMake no longer updates the rpath during install.

@dschuff dschuff merged commit 0c58de1 into master Jun 3, 2020
@dschuff dschuff deleted the link_dylib branch June 3, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants