Skip to content

[llvm-readtapi] Add symlink to call readtapi #67748

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

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

cyndyishida
Copy link
Member

@cyndyishida cyndyishida commented Sep 28, 2023

No description provided.

@cyndyishida
Copy link
Member Author

This may be overkill but I didn't figure out a better way to install both the tool and symlink when adding readtapi to LLVM_DISTRIBUTION_COMPONENTS

@MaskRay MaskRay requested a review from smeenai September 29, 2023 00:38
@ributzka
Copy link
Collaborator

I see the usage of add_llvm_tool_symlink in other tools. Could that simplify the change?

@cyndyishida
Copy link
Member Author

I see the usage of add_llvm_tool_symlink in other tools. Could that simplify the change?

I tried that initially. AFAICT it doesn't create a target, so I couldn't figure out how to get that symlink as a part of the installation step. I ended up doing a simpler version of https://github.com/llvm/llvm-project/blob/main/llvm-libgcc/CMakeLists.txt#L134

@ributzka
Copy link
Collaborator

I am looking at llvm-nm as an example, which also has the symlink. llvm-nm is also part of LLVM_TOOLCHAIN_TOOLS, but I don't see llvm-readtapi in that list.

@ributzka
Copy link
Collaborator

`llvm-nm' seems special, since it is considered a binutils tool.

@cyndyishida
Copy link
Member Author

`llvm-nm' seems special, since it is considered a binutils tool.

Yes, there are BINUTILS and CCTOOLS and TOOLCHAIN_TOOLS. I'm not opposed to adding readtapi to TOOLCHAIN_TOOLS but I still want to be able to install readtapi as a part of downstream tapi, separate from the rest of the llvm tools.

@cyndyishida cyndyishida marked this pull request as draft September 29, 2023 16:23
@cyndyishida cyndyishida changed the title [llvm-readtapi] Add install-distribution support [llvm-readtapi] Add symlink to call readtapi Sep 29, 2023
Copy link
Collaborator

@ributzka ributzka left a comment

Choose a reason for hiding this comment

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

LGTM

@cyndyishida cyndyishida marked this pull request as ready for review September 29, 2023 16:55
@cyndyishida
Copy link
Member Author

I see the usage of add_llvm_tool_symlink in other tools. Could that simplify the change?

For the sake of completeness, this is actually enough for my goal to install downstream. It turned out the downstream project had some defaults that didn't play nicely with llvm-tools. Specifically set(LLVM_BUILD_TOOLS OFF CACHE BOOL "")

Copy link
Collaborator

@smeenai smeenai left a comment

Choose a reason for hiding this comment

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

LGTM

@cyndyishida cyndyishida merged commit a54f31f into llvm:main Sep 29, 2023
cyndyishida added a commit to cyndyishida/llvm-project that referenced this pull request Nov 15, 2023
cyndyishida added a commit to swiftlang/llvm-project that referenced this pull request Nov 16, 2023
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