[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:38 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")
----------------
shiltian wrote:
I see many places have `${CMAKE_SYSTEM_NAME} MATCHES "AIX"`. Can we just define a variable (e.g. `AIX`, like others) and use it everywhere else?
https://github.com/llvm/llvm-project/pull/76841
More information about the Openmp-commits
mailing list