Skip to content

Commit

Permalink
Detect ARCH=sparc in CMake (#1660)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff authored Oct 6, 2022
1 parent 787d9c1 commit a64ac09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ else()
set(ARCH riscv)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(s390x.*|S390X.*)")
set(ARCH s390x)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(sparc.*|SPARC.*)")
set(ARCH sparc)
else()
message(
FATAL_ERROR
"opentelemetry-cpp: unrecognized target processor configuration!")
"opentelemetry-cpp: unrecognized target processor ${CMAKE_SYSTEM_PROCESSOR} configuration!"
)
endif()
endif()
message(STATUS "Building for architecture ARCH=${ARCH}")
Expand Down

0 comments on commit a64ac09

Please sign in to comment.