[Openmp-commits] [openmp] [openmp][AIX]Initial changes for porting to AIX (PR #76841)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 3 14:52:37 PST 2024


================
@@ -128,8 +130,13 @@ set(LIBOMP_ASMFLAGS "" CACHE STRING
   "Appended user specified assembler flags.")
 set(LIBOMP_LDFLAGS "" CACHE STRING
   "Appended user specified linker flags.")
-set(LIBOMP_LIBFLAGS "" CACHE STRING
-  "Appended user specified linked libs flags. (e.g., -lm)")
+if("${LIBOMP_ARCH}" STREQUAL "ppc")  # PPC (32-bit) needs libatomic for __atomic_load_8, etc.
+set(LIBOMP_LIBFLAGS "-latomic" CACHE STRING
----------------
shiltian wrote:

indent

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


More information about the Openmp-commits mailing list