[PATCH] D107059: [SPEC2017] Add support for Darwin platforms.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 05:36:53 PDT 2021
fhahn updated this revision to Diff 362730.
fhahn added a comment.
Guard perlbench define by TARGET_OS == Darwin
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107059/new/
https://reviews.llvm.org/D107059
Files:
External/SPEC/CINT2017rate/500.perlbench_r/CMakeLists.txt
External/SPEC/SpecCPU2017.cmake
Index: External/SPEC/SpecCPU2017.cmake
===================================================================
--- External/SPEC/SpecCPU2017.cmake
+++ External/SPEC/SpecCPU2017.cmake
@@ -158,6 +158,8 @@
list(APPEND SPEC_COMMON_DEFS "-DSPEC_LINUX_AARCH64")
elseif (ARCH STREQUAL "x86" AND TARGET_OS STREQUAL "Windows")
# Windows x86/x64
+ elseif (TARGET_OS STREQUAL "Darwin")
+ add_definitions(-DSPEC_MACOSX)
else ()
message("ARCH: ${ARCH}")
message("TARGET_OS: ${TARGET_OS}")
Index: External/SPEC/CINT2017rate/500.perlbench_r/CMakeLists.txt
===================================================================
--- External/SPEC/CINT2017rate/500.perlbench_r/CMakeLists.txt
+++ External/SPEC/CINT2017rate/500.perlbench_r/CMakeLists.txt
@@ -6,6 +6,10 @@
speccpu2017_benchmark(RATE)
+if (TARGET_OS STREQUAL "Darwin")
+ add_definitions(-DSPEC_MACOSX_X64)
+endif ()
+
add_definitions(
-DPERL_CORE
-DDOUBLE_SLASHES_SPECIAL=0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107059.362730.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/fb8085a2/attachment.bin>
More information about the llvm-commits
mailing list