Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: do not force building with the install name dir #65656

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

mathstuf
Copy link
Contributor

@mathstuf mathstuf commented Sep 7, 2023

When custom install names and rpaths setups are being used, they may not work in the build tree as-is (namely when using absolute paths for install names in order to avoid rpath juggling in downstream projects).

Use an undocumented flag to control this as it is fairly advanced.

See: https://reviews.llvm.org/D42463


I can add docs and a cache entry for this if wanted.

Copy link
Contributor

@tambry tambry left a comment

Choose a reason for hiding this comment

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

I think we should have documentation for this flag. You can defer that until we've hashed out the behaviour and the flag itself though. 🙂

llvm/CMakeLists.txt Outdated Show resolved Hide resolved
@mathstuf mathstuf force-pushed the no-force-install-name-dir-in-build-tree branch 2 times, most recently from 771dc03 to d498410 Compare September 23, 2023 23:14
@mathstuf
Copy link
Contributor Author

Well, I have no idea what CI is choking on…

@tambry
Copy link
Contributor

tambry commented Sep 24, 2023

Well, I have no idea what CI is choking on…

Try rebasing. Seems there may have been some CI breakages in master.

@tambry tambry added the cmake Build system in general and CMake in particular label Sep 24, 2023
@mathstuf mathstuf force-pushed the no-force-install-name-dir-in-build-tree branch from d498410 to 6cb4198 Compare September 24, 2023 12:04
@mathstuf
Copy link
Contributor Author

@tambry Thanks for the review. FYI, I do not have merge rights, so someone else will need to hit the button for me.

@tambry
Copy link
Contributor

tambry commented Sep 29, 2023

Could you update the commit message to reflect that it's no longer undocumented?

cmake: allow disabling building with the install name directory

When custom install names and rpaths setups are used they may not
work in the build tree as-is (namely when using absolute paths for
install names in order to avoid rpath juggling in downstream projects).

Add a flag for opting out of this behaviour.

See: https://reviews.llvm.org/D42463

When custom install names and rpaths setups are used they may not
work in the build tree as-is (namely when using absolute paths for
install names in order to avoid rpath juggling in downstream projects).

Add a flag for opting out of this behaviour.

See: https://reviews.llvm.org/D42463
@mathstuf
Copy link
Contributor Author

Thanks. Updated.

@mathstuf mathstuf force-pushed the no-force-install-name-dir-in-build-tree branch from 6cb4198 to a52e378 Compare September 30, 2023 14:25
@tambry tambry merged commit c1ce21b into llvm:main Oct 1, 2023
3 checks passed
@mathstuf mathstuf deleted the no-force-install-name-dir-in-build-tree branch October 1, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants