[llvm] r317148 - [cmake] Switch FATAL_ERROR to SEND_ERROR

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 18:07:38 PDT 2017


Author: smeenai
Date: Wed Nov  1 18:07:37 2017
New Revision: 317148

URL: http://llvm.org/viewvc/llvm-project?rev=317148&view=rev
Log:
[cmake] Switch FATAL_ERROR to SEND_ERROR

It's possible for multiple distribution components to have missing
targets, and it's a lot more convenient to get all those errors in one
shot rather than having to fix them individually.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=317148&r1=317147&r2=317148&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Nov  1 18:07:37 2017
@@ -1001,13 +1001,13 @@ if(LLVM_DISTRIBUTION_COMPONENTS)
     if(TARGET ${target})
       add_dependencies(distribution ${target})
     else()
-      message(FATAL_ERROR "Specified distribution component '${target}' doesn't have a target")
+      message(SEND_ERROR "Specified distribution component '${target}' doesn't have a target")
     endif()
 
     if(TARGET install-${target})
       add_dependencies(install-distribution install-${target})
     else()
-      message(FATAL_ERROR "Specified distribution component '${target}' doesn't have an install target")
+      message(SEND_ERROR "Specified distribution component '${target}' doesn't have an install target")
     endif()
   endforeach()
 endif()




More information about the llvm-commits mailing list