[SPECCPU2017] Check for 'all' input data directory before generating command
Summary: As of SPEC CPU2017 1.0.5, 526.blender_r/data does not contain an 'all' subdirectory, which breaks the build.
Reviewers: Meinersbur, MatzeB
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68967
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@375480 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/External/SPEC/SpecCPU2017.cmake b/External/SPEC/SpecCPU2017.cmake
index dbdecf7..88a81be 100644
--- a/External/SPEC/SpecCPU2017.cmake
+++ b/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()