llvm.org GIT mirror llvm / 399df16
Merging r312043: ------------------------------------------------------------------------ r312043 | rnk | 2017-08-29 14:44:21 -0700 (Tue, 29 Aug 2017) | 25 lines [cmake] Stop putting the revision info in LLVM_VERSION_STRING Summary: This reduces the number of build actions after a no-op commit from thousands to about six, which should be acceptable. If six actions is still too many, developers can disable the LLVM_APPEND_VC_REV cmake option. llvm-config.h is a widely included header that should rarely change. Before this patch, it would change after every re-configure. Very few users of llvm-config.h need to know the precise version, and those that do can migrate to incorporating LLVM_REVISION as provided by llvm/Support/VCSRevision.h. This should bring LLVM back to the behavior that it had before r306858 from June 30 2017. Most LLVM tools will now print a version string like "6.0.0svn" instead of "6.0.0-git-c40c2a23de4". Fixes PR34308 Reviewers: pcc, rafael, hans Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D37272 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@318344 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 1 year, 9 months ago
2 changed file(s) with 4 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
206206
207207 option(LLVM_APPEND_VC_REV
208208 "Embed the version control system revision id in LLVM" ON)
209
210 if( LLVM_APPEND_VC_REV )
211 add_version_info_from_vcs(PACKAGE_VERSION)
212 endif()
213209
214210 set(PACKAGE_NAME LLVM)
215211 set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
247247
248248 **LLVM_APPEND_VC_REV**:BOOL
249249 Embed version control revision info (svn revision number or Git revision id).
250 This is used among other things in the LLVM version string (stored in the
251 PACKAGE_VERSION macro). For this to work cmake must be invoked before the
252 build. Defaults to ON.
250 The version info is provided by the ``LLVM_REVISION`` macro in
251 ``llvm/include/llvm/Support/VCSRevision.h``. Developers using git who don't
252 need revision info can disable this option to avoid re-linking most binaries
253 after a branch switch. Defaults to ON.
253254
254255 **LLVM_ENABLE_THREADS**:BOOL
255256 Build with threads support, if available. Defaults to ON.