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

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Apr 12 09:47:44 PDT 2024


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

What is this used for?

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


More information about the Openmp-commits mailing list