This is an archive of the discontinued LLVM Phabricator instance.

Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well.
ClosedPublic

Authored by thakis on Jan 16 2020, 8:29 AM.

Details

Summary

When LLVM_APPEND_VC_REV=OFF is set, the current git hash is no
longer embedded into binaries (mostly for --version output).
Without it, most binaries need to relink after every single
commit, even if they didn't change otherwise (due to, say,
a documentation-only commit).

LLVM_APPEND_VC_REV is ON by default, so this doesn't change the
default behavior of anything.

With this, all clients of GenerateVersionFromVCS.cmake honor
LLVM_APPEND_VC_REV.

Diff Detail

Event Timeline

thakis created this revision.Jan 16 2020, 8:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2020, 8:29 AM
Herald added a subscriber: mgorny. · View Herald Transcript

A very late follow-up to my question in D37272 :)

rnk accepted this revision.Jan 16 2020, 3:27 PM

lgtm

llvm/cmake/modules/LLVMConfig.cmake.in
81

This here should make the standalone build configs work, I think.

This revision is now accepted and ready to land.Jan 16 2020, 3:27 PM
This revision was automatically updated to reflect the committed changes.
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 16 2020, 4:12 PM