-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build-script: fix --skip-build-llvm
not having full effect
#82233
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
base: main
Are you sure you want to change the base?
Conversation
While LLVM cannot be completely disabled when Swift is built, we should still allow skipping LLVM configuration and build steps when Swift is not built. This can happen, for example, when `build-script` user wants an ad-hoc incremental build, and `--skip-build-swift` is also passed.
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me. Do we normally use the just-built clang or host clang when building everything (that is C/C++) else?
Just built, same as Swift. That's why making it conditional on |
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is okay. (Can you check that the lldb product builds correctly standalone/doesn't depend on the required pieces of the LLVM product)
@drexin wrote the build-script product for LLVM though, so he might have better recollection about why it was done the way that it was.
The comment above basically explains it, but I also only reproduced what |
While LLVM cannot be completely disabled when Swift is built, we should still allow skipping LLVM configuration and build steps when Swift is not built. This can happen, for example, when
build-script
user wants an ad-hoc incremental build with--skip-build-swift
for products that don't depend on LLVM and Swift, or if LLVM and Swift were already configured and built in previousbuild-script
invocations.