[PATCH] D60576: [cmake] Fix dependency issue in TableGen

Pengxuan Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 14:08:43 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd8ada681df24: [cmake] Fix dependency issue in TableGen (authored by pzheng).

Changed prior to commit:
  https://reviews.llvm.org/D60576?vs=194739&id=194754#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60576/new/

https://reviews.llvm.org/D60576

Files:
  llvm/cmake/modules/TableGen.cmake


Index: llvm/cmake/modules/TableGen.cmake
===================================================================
--- llvm/cmake/modules/TableGen.cmake
+++ llvm/cmake/modules/TableGen.cmake
@@ -143,7 +143,8 @@
       # Create an artificial dependency between tablegen projects, because they
       # compile the same dependencies, thus using the same build folders.
       # FIXME: A proper fix requires sequentially chaining tablegens.
-      if (NOT ${project} STREQUAL LLVM AND TARGET ${project}-tablegen-host)
+      if (NOT ${project} STREQUAL LLVM AND TARGET ${project}-tablegen-host AND
+          TARGET LLVM-tablegen-host)
         add_dependencies(${project}-tablegen-host LLVM-tablegen-host)
       endif()
     endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60576.194754.patch
Type: text/x-patch
Size: 726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190411/c7b9a68b/attachment.bin>


More information about the llvm-commits mailing list