Skip to content

Commit

Permalink
Correctly detect architecture on powerpc* (#6415)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj committed May 28, 2022
1 parent 2c8ffd0 commit ae4d1b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmake/modules/DetectMachine.cmake
Expand Up @@ -105,6 +105,12 @@ ELSE()
ELSE()
SET(IS_RISCV32 TRUE)
ENDIF()
ELSEIF(Machine MATCHES "ppc|powerpc")
IF(Machine MATCHES "ppc64|powerpc64")
SET(IS_PPC64 TRUE)
ELSE()
SET(IS_PPC32 TRUE)
ENDIF()
ENDIF()
ENDIF()

Expand All @@ -126,6 +132,12 @@ ELSEIF(IS_RISCV32)
ELSEIF(IS_RISCV64)
MESSAGE("-- Target host is 64 bit, RISC-V")
SET(LMMS_HOST_RISCV64 TRUE)
ELSEIF(IS_PPC32)
MESSAGE("-- Target host is 32 bit, PPC")
SET(LMMS_HOST_PPC32 TRUE)
ELSEIF(IS_PPC64)
MESSAGE("-- Target host is 64 bit, PPC")
SET(LMMS_HOST_PPC64 TRUE)
ELSE()
MESSAGE("Can't identify target host. Assuming 32 bit platform.")
ENDIF()
Expand Down
2 changes: 2 additions & 0 deletions src/lmmsconfig.h.in
Expand Up @@ -12,6 +12,8 @@
#cmakedefine LMMS_HOST_ARM64
#cmakedefine LMMS_HOST_RISCV32
#cmakedefine LMMS_HOST_RISCV64
#cmakedefine LMMS_HOST_PPC32
#cmakedefine LMMS_HOST_PPC64

#cmakedefine LMMS_HAVE_ALSA
#cmakedefine LMMS_HAVE_FLUIDSYNTH
Expand Down

0 comments on commit ae4d1b5

Please sign in to comment.