[PATCH] D68967: [SPECCPU2017] Check for 'all' input data directory before generating command

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 18:14:03 PDT 2019


ddcc created this revision.
ddcc added reviewers: Meinersbur, MatzeB.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.

As of SPEC CPU2017 1.0.5, 526.blender_r/data does not contain an 'all' subdirectory, which breaks the build.


Repository:
  rT test-suite

https://reviews.llvm.org/D68967

Files:
  External/SPEC/SpecCPU2017.cmake


Index: External/SPEC/SpecCPU2017.cmake
===================================================================
--- External/SPEC/SpecCPU2017.cmake
+++ External/SPEC/SpecCPU2017.cmake
@@ -344,7 +344,9 @@
 # file as an absolute path to the rundir.
 macro(speccpu2017_prepare_rundir)
   foreach (_runtype IN LISTS TEST_SUITE_RUN_TYPE)
-    llvm_copy_dir(${PROG} "${RUN_${_runtype}_DIR}" "${INPUT_all_DIR}")
+    if (EXISTS "${INPUT_all_DIR}")
+      llvm_copy_dir(${PROG} "${RUN_${_runtype}_DIR}" "${INPUT_all_DIR}")
+    endif ()
     llvm_copy_dir(${PROG} "${RUN_${_runtype}_DIR}" "${INPUT_${_runtype}_DIR}")
   endforeach ()
 endmacro()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68967.224944.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191015/c993571f/attachment.bin>


More information about the llvm-commits mailing list