-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add a switch to not include git commit hash in the built artifacts #32998
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
Conversation
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
This PR adds a
SWIFT_APPEND_VC_REV
Cmake option (in symmetry with LLVM'sLLVM_APPEND_VC_REV
).When enabled,
lib/Basic/SwiftRevision.inc
header contains git commit hash and repository information, e.g.This is useful for keeping track of the VCS state that produced a binary. But for local development builds, this information is often ignored and since this file is invalidated by every
git commit
orgit checkout
command and it leads to long rebuilds, it's useful to have a switch to disable this behavior. WhenSWIFT_APPEND_VC_REV
is disabled,lib/Basic/SwiftRevision.inc
contains: