[PATCH] D41273: [cmake] Remove redundant check for Targets to build

Don Hinton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 10:46:15 PST 2017


hintonda updated this revision to Diff 127158.
hintonda added a comment.

- Restore target test, but update error message to reflect that the target is experimental and must be passed via LLVM_EXPERIMENTAL_TARGETS_TO_BUILD.


https://reviews.llvm.org/D41273

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -679,8 +679,8 @@
   list(FIND LLVM_ALL_TARGETS ${t} idx)
   list(FIND LLVM_EXPERIMENTAL_TARGETS_TO_BUILD ${t} idy)
   if( idx LESS 0 AND idy LESS 0 )
-    message(FATAL_ERROR "The target `${t}' does not exist.
-    It should be one of\n${LLVM_ALL_TARGETS}")
+    message(FATAL_ERROR "The target `${t}' is experimental and must be passed "
+      "via LLVM_EXPERIMENTAL_TARGETS_TO_BUILD.")
   else()
     set(LLVM_ENUM_TARGETS "${LLVM_ENUM_TARGETS}LLVM_TARGET(${t})\n")
   endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41273.127158.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171215/75764474/attachment.bin>


More information about the llvm-commits mailing list