]> granicus.if.org Git - llvm/commitdiff
[llvm-lib] Add a dependency to intrinsics_gen to the LLVMLibDriver build
authorStella Stamenova <stilis@microsoft.com>
Mon, 15 Jul 2019 18:15:12 +0000 (18:15 +0000)
committerStella Stamenova <stilis@microsoft.com>
Mon, 15 Jul 2019 18:15:12 +0000 (18:15 +0000)
Summary:
Occasionally the build of LLVMLibDriver will fail because Attributes.inc has not been generated yet. Add an explicit dependency, so that we can guarantee that the file has been generated before LLVMLibDriver is build.

##[error]llvm\include\llvm\IR\Attributes.h(73,0): Error C1083: Cannot open include file: 'llvm/IR/Attributes.inc': No such file or directory
llvm\include\llvm/IR/Attributes.h(73): fatal error C1083: Cannot open include file: 'llvm/IR/Attributes.inc': No such file or directory [LLVMLibDriver.vcxproj]

Reviewers: asmith

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64357

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366097 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ToolDrivers/llvm-lib/CMakeLists.txt

index cbcffb64e7d82d8dbbdf188eab2bca4131a02f7d..3d948aab8e31d1be7ff787ba2b8494297174e149 100644 (file)
@@ -12,5 +12,8 @@ add_public_tablegen_target(LibOptionsTableGen)
 
 add_llvm_library(LLVMLibDriver
   LibDriver.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
 add_dependencies(LLVMLibDriver LibOptionsTableGen)