[flang-commits] [PATCH] D146173: Flang cmake patch to handle LLVM_ENABLE_EH conflict (issue #59353)
Tarun Prabhu via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Apr 26 13:08:45 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf7e58c91587b: [flang] Raise configure-time error when LLVM_ENABLE_EH is set (authored by pmccormick, committed by tarunprabhu).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146173/new/
https://reviews.llvm.org/D146173
Files:
flang/CMakeLists.txt
Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -13,6 +13,14 @@
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)
+if (LLVM_ENABLE_EH)
+ # To match with the flang guidelines we currently disable
+ # building with exception support in core LLVM.
+ message(FATAL_ERROR "Flang does not currently support building with \
+ LLVM exceptions enabled. Please disable LLVM_ENABLE_EH when building \
+ flang.")
+endif()
+
set(FLANG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146173.517283.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230426/b33b3bd6/attachment.bin>
More information about the flang-commits
mailing list