Skip to content
This repository was archived by the owner on Mar 30, 2021. It is now read-only.

Commit 8490810

Browse files
committed
Option to be able to turn off revision include generation.
1 parent d672633 commit 8490810

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Basic/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ find_first_existing_vc_file(clang_vc "${CLANG_SOURCE_DIR}")
1111
set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/SVNVersion.inc")
1212

1313
set(get_svn_script "${LLVM_CMAKE_PATH}/GetSVN.cmake")
14+
if(DEFINED NO_REV_GEN)
15+
message(STATUS "No revision include generation ${NO_REV_GEN}")
16+
endif()
1417

15-
if(DEFINED llvm_vc AND DEFINED clang_vc)
18+
if(NOT DEFINED NO_REV_GEN AND DEFINED llvm_vc AND DEFINED clang_vc)
1619
# Create custom target to generate the VC revision include.
1720
add_custom_command(OUTPUT "${version_inc}"
1821
DEPENDS "${llvm_vc}" "${clang_vc}" "${get_svn_script}"

0 commit comments

Comments
 (0)