Skip to content

Commit af2e6dc

Browse files
committed
[SPEC] Define arch/os portability flag for LoongArch
Similar to #158. Without this change, 500.perlbench_r will fail to build on LoongArch.
1 parent 9f743a8 commit af2e6dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

External/SPEC/SpecCPU2017.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ macro (speccpu2017_benchmark)
157157
elseif (ARCH STREQUAL "AArch64" AND TARGET_OS STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
158158
# Linux ARM
159159
list(APPEND SPEC_COMMON_DEFS "-DSPEC_LINUX_AARCH64")
160+
elseif (ARCH STREQUAL "LoongArch")
161+
list(APPEND SPEC_COMMON_DEFS "-DSPEC_MANUAL_CONFIG")
160162
elseif (ARCH STREQUAL "riscv64")
161163
list(APPEND SPEC_COMMON_DEFS "-DSPEC_MANUAL_CONFIG")
162164
elseif (ARCH STREQUAL "x86" AND TARGET_OS STREQUAL "Windows")

0 commit comments

Comments
 (0)