[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
Wed Dec 6 15:00:19 PST 2023


================
@@ -75,6 +75,25 @@ if(LIBOMPTARGET_ENABLE_DEBUG)
   add_definitions(-DOMPTARGET_DEBUG)
 endif()
 
+# No exceptions and no RTTI, except if requested.
+set(offload_compile_flags -fno-exceptions)
+if(NOT LLVM_ENABLE_RTTI)
+	set(offload_compile_flags ${offload_compile_flags} -fno-rtti)
----------------
jhuber6 wrote:

We use two space indentation for CMake.

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


More information about the Openmp-commits mailing list