[PATCH] D80359: Add a CMake fatal error when someone tries to configure flang without MLIR
    Mehdi AMINI via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 20 22:34:00 PDT 2020
    
    
  
mehdi_amini created this revision.
mehdi_amini added a reviewer: DavidTruby.
Herald added subscribers: llvm-commits, stephenneuendorffer, aartbik, rriddle, mgorny.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.
This is more friendly than the "Unknown CMake command “mlir_tablegen”."
that would be issued instead.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D80359
Files:
  flang/CMakeLists.txt
Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -127,6 +127,10 @@
   endif()
 
 else()
+  if(NOT "mlir" IN_LIST LLVM_ENABLE_PROJECTS)
+    message(FATAL_ERROR "'mlir' is required in LLVM_ENABLE_PROJECTS to build flang")
+  endif()
+
   option(FLANG_INCLUDE_TESTS
          "Generate build targets for the Flang unit tests."
          ${LLVM_INCLUDE_TESTS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80359.265424.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/9c980ff6/attachment.bin>
    
    
More information about the llvm-commits
mailing list