[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:28 PST 2023


================
@@ -88,6 +88,22 @@ target_compile_definitions(PluginCommon PRIVATE
   DEBUG_PREFIX="PluginInterface"
 )
 
+target_compile_options(PluginCommon PUBLIC -fno-exceptions)
+
+if(NOT LLVM_ENABLE_RTTI)
+	target_compile_options(PluginCommon PUBLIC -fno-rtti)
+endif()
+
+include(CheckIPOSupported)
+check_ipo_supported(RESULT use_lto OUTPUT output)
----------------
jhuber6 wrote:

Should probably do this once in `libomptarget` and just set a  var for it.

https://github.com/llvm/llvm-project/pull/74520


More information about the Openmp-commits mailing list