Skip to content

Commit 84d3351

Browse files
committed
[cmake] Do not regenerate llvm VCSVersion.inc:
To prevent llvm/clang, cling, rootcling, dicts and all libs from being rebuilt, just do not regenerate VCSVersion.inc. This feature was originally part of LLVM_APPEND_VC_REV=Off but got lost in llvm monorepo 23fdd5a37ff4e0512af0b40f6ff3e6db4694e937. Another version of this will be reintroduced in llvm upstream.
1 parent 5e3780e commit 84d3351

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

interpreter/llvm/src/tools/clang/lib/Basic/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ set(LLVM_LINK_COMPONENTS
44
Support
55
)
66

7-
find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
8-
find_first_existing_vc_file("${CLANG_SOURCE_DIR}" clang_vc)
7+
# Cut dependency on git to prevent rebuild of large parts of ROOT.
8+
# This will be solved "properly" in llvm upstream, resurrecting
9+
# https://reviews.llvm.org/rGd452126cb333cbd6b289b01d9bc9a48b111ffe9a
10+
# which got lost in (mono-repo) 23fdd5a37ff4e0512af0b40f6ff3e6db4694e937
11+
# 2019-02-06 03:51 +0000 Petr Hosek
12+
# o [CMake] Unify scripts for generating VCS headers
13+
#
14+
#find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
15+
#find_first_existing_vc_file("${CLANG_SOURCE_DIR}" clang_vc)
916

1017
# The VC revision include that we want to generate.
1118
set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/VCSVersion.inc")

0 commit comments

Comments
 (0)