Skip to content

Commit d026e3d

Browse files
authored
[SPEC] Define arch/os portability flag for riscv64-linux-gnu (#158)
Without -DSPEC_MANUAL_CONFIG (or another dummy arch/os flag specified), 500.perlbench_r will fail to build on riscv64-linux-gnu. -DSPEC_LP64 and -DSPEC_LINUX are also already defined via the generic handlers above. I'm not sure if we need to define more flags, but this enough to get things building.
1 parent 1516c62 commit d026e3d

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 "riscv64")
161+
list(APPEND SPEC_COMMON_DEFS "-DSPEC_MANUAL_CONFIG")
160162
elseif (ARCH STREQUAL "x86" AND TARGET_OS STREQUAL "Windows")
161163
# Windows x86/x64
162164
elseif (TARGET_OS STREQUAL "Darwin")

0 commit comments

Comments
 (0)