[Openmp-commits] [openmp] [OpenMP] Add extra flags to libomptarget and plugin builds (PR #74520)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 5 12:47:27 PST 2023
================
@@ -55,6 +55,22 @@ target_compile_definitions(omptarget PRIVATE
DEBUG_PREFIX="omptarget"
)
+target_compile_options(omptarget PRIVATE -fno-exceptions)
+
+if(NOT LLVM_ENABLE_RTTI)
+ target_compile_options(omptarget PRIVATE -fno-rtti)
+endif()
+
+include(CheckIPOSupported)
+check_ipo_supported(RESULT use_lto OUTPUT output)
+if(use_lto)
----------------
jhuber6 wrote:
I suppose if we transition to this being a runtimes only build it will pretty much guarantee we always have LTO available. I'm fine with a default, but we really need a way to turn this off. LTO will make rebuilds for developers more annoying I feel.
https://github.com/llvm/llvm-project/pull/74520
More information about the Openmp-commits
mailing list