[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 27 01:02:56 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0b5d81e6bbad: Automatically configure MLIR when flang is enabled (authored by mehdi_amini).
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.266446.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200527/01db6144/attachment.bin>
More information about the llvm-commits
mailing list