]> granicus.if.org Git - llvm/commitdiff
[CMake] llvm-ar depends on intrinsics_gen
authorChris Bieneman <beanz@apple.com>
Fri, 18 Nov 2016 23:04:27 +0000 (23:04 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 18 Nov 2016 23:04:27 +0000 (23:04 +0000)
llvm-ar.cpp has the following include chain:

llvm/IR/Module.h
llvm/IR/Function.h
llvm/IR/Argument.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means llvm-ar needs to depend on intrinsics_gen.

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

tools/llvm-ar/CMakeLists.txt

index 86233dfce9a514f317bf1dfcd61818a9afceb26e..3bb0c8f7b7c5535f645d174985377495d7027505 100644 (file)
@@ -8,6 +8,9 @@ set(LLVM_LINK_COMPONENTS
 
 add_llvm_tool(llvm-ar
   llvm-ar.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
 
 add_llvm_tool_symlink(llvm-ranlib llvm-ar)