Skip to content

Commit 539d27e

Browse files
authored
Merge pull request #87 from open-telemetry/main
[BUILD] Patches for building on AIX (open-telemetry#3127)
2 parents 5a2241b + a713947 commit 539d27e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ else()
6060
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
6161
set(ARCH x86)
6262
endif()
63+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc")
64+
# AIX will report the processor as 'powerpc' even if building in 64-bit mode
65+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
66+
set(ARCH ppc64)
67+
else()
68+
set(ARCH ppc32)
69+
endif()
6370
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES
6471
"^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)")
6572
set(ARCH arm64)

0 commit comments

Comments
 (0)