[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
Fri May 22 13:57:39 PDT 2020
mehdi_amini updated this revision to Diff 265799.
mehdi_amini added a comment.
Add the dependency automatically instead
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80359/new/
https://reviews.llvm.org/D80359
Files:
llvm/CMakeLists.txt
Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -81,6 +81,10 @@
if( LLVM_ENABLE_PROJECTS STREQUAL "all" )
set( LLVM_ENABLE_PROJECTS ${LLVM_ALL_PROJECTS})
endif()
+if ("flang" IN_LIST LLVM_ENABLE_PROJECTS AND NOT "mlir" IN_LIST LLVM_ENABLE_PROJECTS)
+ message(STATUS "Enabling MLIR as a dependency to flang")
+ list(APPEND LLVM_ENABLE_PROJECTS "mlir")
+endif()
# LLVM_ENABLE_PROJECTS_USED is `ON` if the user has ever used the
# `LLVM_ENABLE_PROJECTS` CMake cache variable. This exists for
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80359.265799.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200522/bebc293c/attachment.bin>
More information about the llvm-commits
mailing list