-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CMake] Create tool header collector target only when building tools #70877
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] Create tool header collector target only when building tools #70877
Conversation
@swift-ci Please test stdlib with toolchain |
Hmm, it seems like we need to update Jenkins pipeline configuration of
https://ci.swift.org/job/swift-PR-stdlib-with-toolchain-osx/8/console |
Huh, sorry I didn't notice. Maybe we should just move this to |
`HeaderDependencies.cpp` cannot be compiled with `SWIFT_INCLUDE_TOOLS=OFF` because it depends on `Config.h` which is only generated while building tools. Exclude it from the build to fix `all` target. Follow-up to b39dba3
4ff5e8f
to
3feb5ae
Compare
Okay, putting it in |
@swift-ci Please smoke test |
Clang and LLVM always provide those tablegen targets, so we don't need to check their existence. Also adding `intrinsic_gen` as a dependency. See swiftlang#12147
3a64c63
to
960086c
Compare
@swift-ci Please smoke test |
Thanks for the fix! I'm enabling auto-merge since this fixes some CI failures and I'd like it to get in quickly. |
HeaderDependencies.cpp
cannot be compiled withSWIFT_INCLUDE_TOOLS=OFF
because it depends onConfig.h
which is only generated while building tools. Exclude it from the build to fixall
target.Follow-up to b39dba3
Hopefully this fixes https://ci.swift.org/job/oss-swift-test-stdlib-with-toolchain/7124
Resolves rdar://120907760