[CMake] llvm-extract depends on intrinsics_gen
authorChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 02:33:57 +0000 (02:33 +0000)
committerChris Bieneman <beanz@apple.com>
Sat, 19 Nov 2016 02:33:57 +0000 (02:33 +0000)
llvm-extract.cpp has the following include chain:

llvm/Bitcode/BitcodeWriterPass.h
llvm/IR/PassManager.h
llvm/IR/Function.h
llvm/IR/Argument.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means llvm-extract needs to depend on intrinsics_gen.

llvm-svn: 287430

llvm/tools/llvm-extract/CMakeLists.txt

index c984f01..ce2a78d 100644 (file)
@@ -8,4 +8,7 @@ set(LLVM_LINK_COMPONENTS
 
 add_llvm_tool(llvm-extract
   llvm-extract.cpp
+
+  DEPENDS
+  intrinsics_gen
   )