Skip to content

Commit

Permalink
[SPEC] Define arch/os portability flag for LoongArch
Browse files Browse the repository at this point in the history
Similar to #158. Without this change, 500.perlbench_r will fail to
build on LoongArch.
  • Loading branch information
SixWeining committed Nov 27, 2024
1 parent 9f743a8 commit af2e6dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions External/SPEC/SpecCPU2017.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ macro (speccpu2017_benchmark)
elseif (ARCH STREQUAL "AArch64" AND TARGET_OS STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
# Linux ARM
list(APPEND SPEC_COMMON_DEFS "-DSPEC_LINUX_AARCH64")
elseif (ARCH STREQUAL "LoongArch")
list(APPEND SPEC_COMMON_DEFS "-DSPEC_MANUAL_CONFIG")
elseif (ARCH STREQUAL "riscv64")
list(APPEND SPEC_COMMON_DEFS "-DSPEC_MANUAL_CONFIG")
elseif (ARCH STREQUAL "x86" AND TARGET_OS STREQUAL "Windows")
Expand Down

0 comments on commit af2e6dc

Please sign in to comment.