[flang-commits] [PATCH] D146173: Flang cmake patch to handle LLVM_ENABLE_EH conflict (issue #59353)
Pat McCormick via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon Apr 24 15:07:46 PDT 2023
pmccormick updated this revision to Diff 516548.
pmccormick added a comment.
Rebased to capture latest state.
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.516548.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230424/74a09106/attachment.bin>
More information about the flang-commits
mailing list