[llvm] [OpenMP] Use the `libc` malloc for AMDGPU if available (PR #151241)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 04:29:46 PDT 2025
================
@@ -50,7 +50,7 @@ namespace {
///
///{
extern "C" {
-#ifdef __AMDGPU__
+#if defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC)
----------------
jhuber6 wrote:
Nope, weak symbols don't extract from `.a` files as they're considered 'defined'.
https://github.com/llvm/llvm-project/pull/151241
More information about the llvm-commits
mailing list