[PATCH] D54153: Fix compilation issue in VS2017 with Clang-tablegen and LLVM-tablegen

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 6 08:11:02 PST 2018


aganea updated this revision to Diff 172770.
aganea added a reviewer: nhaehnle.
aganea added a comment.

Updated with Nicolai's suggestion.


Repository:
  rL LLVM

https://reviews.llvm.org/D54153

Files:
  cmake/modules/TableGen.cmake


Index: cmake/modules/TableGen.cmake
===================================================================
--- cmake/modules/TableGen.cmake
+++ cmake/modules/TableGen.cmake
@@ -165,6 +165,9 @@
         COMMENT "Building native TableGen..."
         USES_TERMINAL)
       add_custom_target(${project}-tablegen-host DEPENDS ${${project}_TABLEGEN_EXE})
+      if (NOT ${project} STREQUAL LLVM)
+        add_dependencies(${project}-tablegen-host LLVM-tablegen-host)
+      endif()
       set(${project}_TABLEGEN_TARGET ${project}-tablegen-host PARENT_SCOPE)
     endif()
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54153.172770.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/dd58c70d/attachment.bin>


More information about the llvm-commits mailing list