[Openmp-commits] [openmp] [libomp] Add kmp_str_ref (ADT 1/2) (PR #176162)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 29 08:45:46 PST 2026
jhuber6 wrote:
> This might be a good time to think about whether we still want to keep `libomp` as a C library. Nowadays, even Fortran is rapidly doing offloading, so the original reason for keeping `libomp` as C needs to be revisited. We definitely don't want to link against LLVM libraries, but I'm leaning toward making `libomp` a proper C++ library while still providing C APIs. We would not provide C++ APIs.
>
> I'd plan to bring this up at the next OpenMP meeting. If we go this route, we would not need these two ADTs at all.
Yeah, I'd be in favor of this. As long as you compile with these magic flags `-fno-rtti -fno-exceptions -Werror=global-constructors -nostdlib++` the use of C++ is only a benefit IMO.
https://github.com/llvm/llvm-project/pull/176162
More information about the Openmp-commits
mailing list