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

Xing Xue via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 4 08:49:15 PST 2024


================
@@ -94,7 +94,8 @@ set(ENABLE_LIBOMPTARGET ON)
 # Since the device plugins are only supported on Linux anyway,
 # there is no point in trying to compile libomptarget on other OSes.
 # 32-bit systems are not supported either.
-if (APPLE OR WIN32 OR WASM OR NOT "cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES OR NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
+if (APPLE OR WIN32 OR WASM OR NOT "cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES
+    OR NOT CMAKE_SIZEOF_VOID_P EQUAL 8 OR ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
----------------
xingxue-ibm wrote:

CMake IDs such as `APPLE` or `WIN32` are defined by CMake. Unfortunately, CMake does not define `AIX` for the AIX platform. Therefore, `${CMAKE_SYSTEM_NAME} MATCHES "AIX"` is used instead in LLVM CMake files for AIX specific code, e.g., `llvm/CMakeLists.txt`, `llvm/cmake/modules/AddLLVM.cmake`, `libcxx/CMakeLists.txt`, `libcxxabi/src/CMakeLists.txt`, to name a few.

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


More information about the Openmp-commits mailing list