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

llvm/Bitcode/BitcodeWriter.h
llvm/IR/ModuleSummaryIndex.h
llvm/IR/Module.h
llvm/IR/Function.h
llvm/IR/Argument.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means llvm-as needs to depend on intrinsics_gen.

llvm-svn: 287423

llvm/tools/llvm-as/CMakeLists.txt

index 1b2789a..3a157a3 100644 (file)
@@ -7,4 +7,7 @@ set(LLVM_LINK_COMPONENTS
 
 add_llvm_tool(llvm-as
   llvm-as.cpp
+
+  DEPENDS
+  intrinsics_gen
   )