[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
Fri Apr 12 09:49:01 PDT 2024


================
@@ -33,6 +33,8 @@
 #include <string>
 #include <thread>
 
+[[gnu::constructor(101)]] void ctor() { printf("asdfasdf\n"); }
----------------
jhuber6 wrote:

Forgot I put that there to make sure that it was actually passing the flag still.

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


More information about the Openmp-commits mailing list