[Openmp-commits] [openmp] [libomp][AIX] Rename libatomic to libcompiler_rt (PR #203594)

Xing Xue via Openmp-commits openmp-commits at lists.llvm.org
Fri Jun 12 10:47:57 PDT 2026


https://github.com/xingxue-ibm created https://github.com/llvm/llvm-project/pull/203594

This change updates the reference from `libatomic` to `libcompiler_rt` to match the recent renaming on AIX.

>From 3e85a654bfb4391fcdd843c3348bf711a8bc7476 Mon Sep 17 00:00:00 2001
From: Xing Xue <xingxue at outlook.com>
Date: Fri, 12 Jun 2026 13:22:32 -0400
Subject: [PATCH] libatomic has been renamed to libcompiler_rt for AIX.

---
 openmp/runtime/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index be3dea7c6f946..9f92f36d5a5a7 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -139,8 +139,8 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES "AIX")
   set(LIBOMP_LIBFLAGS "-lperfstat" CACHE STRING
     "Appended user specified linked libs flags. (e.g., -lm)")
   if("${LIBOMP_ARCH}" STREQUAL "ppc")
-    # PPC (32-bit) on AIX needs libatomic for __atomic_load_8, etc.
-    set(LIBOMP_LIBFLAGS "${LIBOMP_LIBFLAGS} -latomic")
+    # PPC (32-bit) on AIX needs libcompiler_rt for __atomic_load_8, etc.
+    set(LIBOMP_LIBFLAGS "${LIBOMP_LIBFLAGS} -lcompiler_rt")
   endif()
 else()
   set(LIBOMP_LIBFLAGS "" CACHE STRING



More information about the Openmp-commits mailing list