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

tc_build: llvm: Fix distribution_components with disabled projects #246

Merged

Conversation

nathanchance
Copy link
Member

It is possible to use --projects to build certain combinations of subprojects, such as just llvm or clang to build just LLVM or LLVM and clang respectively. When either the clang or lld subproject is not enabled, there is an error when running cmake due to their targets being present in the distributions components list.

Only add them to distribution_components if the projects that contain them are enabled.

It is possible to use '--projects' to build certain combinations of
subprojects, such as just 'llvm' or 'clang' to build just LLVM or LLVM
and clang respectively. When either the 'clang' or 'lld' subproject is
not enabled, there is an error when running cmake due to their targets
being present in the distributions components list.

Only add them to distribution_components if the projects that contain
them are enabled.

Signed-off-by: Nathan Chancellor <[email protected]>
Copy link
Member

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

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

Are the remaining default entries in distribution_components guaranteed to be available for all combinations?

…UILD_TOOLS=ON

With LLVM_BUILD_TOOLS=OFF, these will not be available for build in "all".

Signed-off-by: Nathan Chancellor <[email protected]>
@nathanchance
Copy link
Member Author

Are the remaining default entries in distribution_components guaranteed to be available for all combinations?

I think LLVM_BUILD_TOOLS=OFF would break under the current scheme. I thought about just letting that be but I think it is easy enough to guard against: e916997

@msfjarvis msfjarvis merged commit c22cfcd into ClangBuiltLinux:main Oct 23, 2023
6 checks passed
@nathanchance nathanchance deleted the fix-distribution-components branch October 23, 2023 22:28
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.

2 participants