Add order-dependencies to object libraries
authorChris Bieneman <chris.bieneman@me.com>
Tue, 6 Aug 2019 19:41:23 +0000 (19:41 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Tue, 6 Aug 2019 19:41:23 +0000 (19:41 +0000)
commit96655b32d8edf2616c6e88744d3faf2bfce721cc
tree2a964c654956e2e027e0f7b028f4e47ddba494c6
parente2f17e264997ab6f2630d368bfc7b517e75507d3
Add order-dependencies to object libraries

Summary: If you are generating an object library that depends on table-gen generate sources, you need the object library to depend on the tablgen target. Currently llvm_add_library doesn't add dependencies for object libraries at all, which is clearly problematic.

Reviewers: compnerd, hintonda, smeenai

Reviewed By: smeenai

Subscribers: mgorny, llvm-commits

Tags: #llvm

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

llvm-svn: 368074
llvm/cmake/modules/AddLLVM.cmake