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

llvm-libc build: fix build failure with C++ libs disabled #632

Merged

Conversation

statham-arm
Copy link
Collaborator

Testing the llvm-libc build after the previous commit, I found that the arm-multilib cmake script unconditionally tries to invoke build targets like cxxlibs-configure or cxxlibs-build in the individual library variant builds. Those targets don't exist in an llvm-libc build, because those set "ENABLE_CXX_LIBS": "OFF" in their per-variant JSON files.

This commit applies the simplest possible fix: make targets of those names in arm-runtimes, even if nothing is actually in them. Then invoking them from the higher-level build script is a NOP instead of a failure.

Testing the llvm-libc build after the previous commit, I found that
the arm-multilib cmake script unconditionally tries to invoke build
targets like `cxxlibs-configure` or `cxxlibs-build` in the individual
library variant builds. Those targets don't exist in an llvm-libc
build, because those set `"ENABLE_CXX_LIBS": "OFF"` in their
per-variant JSON files.

This commit applies the simplest possible fix: _make_ targets of those
names in `arm-runtimes`, even if nothing is actually in them. Then
invoking them from the higher-level build script is a NOP instead of a
failure.
Copy link
Collaborator

@dcandler dcandler left a comment

Choose a reason for hiding this comment

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

LGTM

@statham-arm statham-arm merged commit 5c35c32 into ARM-software:main Jan 27, 2025
1 check passed
@statham-arm statham-arm deleted the llvm-libc-libcxx-build-fix branch January 27, 2025 17:00
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