[PATCH] D107059: [SPEC2017] Add support for Darwin platforms.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 13:27:58 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rT56e28a7fe120: [SPEC2017] Add support for Darwin platforms. (authored by fhahn).

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.362862.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/3742c323/attachment.bin>


More information about the llvm-commits mailing list