Skip to content

Commit

Permalink
Merge pull request #87 from open-telemetry/main
Browse files Browse the repository at this point in the history
[BUILD] Patches for building on AIX (open-telemetry#3127)
  • Loading branch information
malkia authored Nov 12, 2024
2 parents 5a2241b + a713947 commit 539d27e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ else()
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(ARCH x86)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
# AIX will report the processor as 'powerpc' even if building in 64-bit mode
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ARCH ppc64)
else()
set(ARCH ppc32)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES
"^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
set(ARCH arm64)
Expand Down

0 comments on commit 539d27e

Please sign in to comment.