[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:30:11 PDT 2021


fhahn created this revision.
fhahn added reviewers: naromero77, Meinersbur, cmatthews, paquette.
Herald added a subscriber: mgorny.
fhahn requested review of this revision.

This patch adds detection of Darwin platforms and the corresponding defines.


Repository:
  rT test-suite

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,8 @@
 
 speccpu2017_benchmark(RATE)
 
+add_definitions(-DSPEC_MACOSX_X64)
+
 add_definitions(
   -DPERL_CORE
   -DDOUBLE_SLASHES_SPECIAL=0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107059.362727.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/825cfa7f/attachment.bin>


More information about the llvm-commits mailing list