Skip to content

Commit

Permalink
[llvm-lib] Add a dependency to intrinsics_gen to the LLVMLibDriver build
Browse files Browse the repository at this point in the history
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

llvm-svn: 366097
  • Loading branch information
sstamenova committed Jul 15, 2019
1 parent 81971b2 commit 032e3c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/ToolDrivers/llvm-lib/CMakeLists.txt
Expand Up @@ -12,5 +12,8 @@ add_public_tablegen_target(LibOptionsTableGen)

add_llvm_library(LLVMLibDriver
LibDriver.cpp

DEPENDS
intrinsics_gen
)
add_dependencies(LLVMLibDriver LibOptionsTableGen)

0 comments on commit 032e3c4

Please sign in to comment.