[Openmp-commits] [openmp] [Libomptarget] Pass '-Werror=global-constructors' to the libomptarget build (PR #88531)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Apr 16 06:35:22 PDT 2024


================
@@ -23,6 +23,9 @@
 
 using namespace llvm;
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wglobal-constructors"
----------------
jhuber6 wrote:

A better solution in the future would probably be to just make this tool not link directly with the plugin object.

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


More information about the Openmp-commits mailing list