[PATCH] D36119: [CMake][LLVM] Remove duplicated library mask. Broken clang linking against clangShared

Oleg Ranevskyy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 1 11:39:24 PDT 2017


iid_iunknown updated this revision to Diff 109164.
iid_iunknown added a comment.

Sort the matchers


Repository:
  rL LLVM

https://reviews.llvm.org/D36119

Files:
  cmake/modules/LLVM-Config.cmake


Index: cmake/modules/LLVM-Config.cmake
===================================================================
--- cmake/modules/LLVM-Config.cmake
+++ cmake/modules/LLVM-Config.cmake
@@ -175,18 +175,15 @@
           message(FATAL_ERROR "Target ${c} is not in the set of libraries.")
         endif()
       endif()
-      if( TARGET LLVM${c}AsmPrinter )
-        list(APPEND expanded_components "LLVM${c}AsmPrinter")
-      endif()
       if( TARGET LLVM${c}AsmParser )
         list(APPEND expanded_components "LLVM${c}AsmParser")
       endif()
+      if( TARGET LLVM${c}AsmPrinter )
+        list(APPEND expanded_components "LLVM${c}AsmPrinter")
+      endif()
       if( TARGET LLVM${c}Desc )
         list(APPEND expanded_components "LLVM${c}Desc")
       endif()
-      if( TARGET LLVM${c}Info )
-        list(APPEND expanded_components "LLVM${c}Info")
-      endif()
       if( TARGET LLVM${c}Disassembler )
         list(APPEND expanded_components "LLVM${c}Disassembler")
       endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36119.109164.patch
Type: text/x-patch
Size: 1012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170801/69b46ac4/attachment.bin>


More information about the llvm-commits mailing list