[lld] 4f5c65a - try to unbreak build after 4b6d9ac392613

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 07:12:43 PST 2020


Author: Nico Weber
Date: 2020-01-16T10:12:35-05:00
New Revision: 4f5c65a5c80438d638ef4f863cf3f98e19a6de97

URL: https://github.com/llvm/llvm-project/commit/4f5c65a5c80438d638ef4f863cf3f98e19a6de97
DIFF: https://github.com/llvm/llvm-project/commit/4f5c65a5c80438d638ef4f863cf3f98e19a6de97.diff

LOG: try to unbreak build after 4b6d9ac392613

Added: 
    

Modified: 
    lld/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
index b0320ef6483f..a506afa31fd3 100644
--- a/lld/CMakeLists.txt
+++ b/lld/CMakeLists.txt
@@ -130,6 +130,12 @@ string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" LLD_VERSION_MAJOR
 string(REGEX REPLACE "[0-9]+\\.([0-9]+)(\\.[0-9]+)?" "\\1" LLD_VERSION_MINOR
   ${LLD_VERSION})
 
+# Configure the Version.inc file.
+configure_file(
+  ${CMAKE_CURRENT_SOURCE_DIR}/include/lld/Common/Version.inc.in
+  ${CMAKE_CURRENT_BINARY_DIR}/include/lld/Common/Version.inc)
+
+
 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
   message(FATAL_ERROR "In-source builds are not allowed. CMake would overwrite "
 "the makefiles distributed with LLVM. Please create a directory and run cmake "


        


More information about the llvm-commits mailing list