aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--External/SPEC/SpecCPU2017.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/External/SPEC/SpecCPU2017.cmake b/External/SPEC/SpecCPU2017.cmake
index dbdecf71..88a81be2 100644
--- a/External/SPEC/SpecCPU2017.cmake
+++ b/External/SPEC/SpecCPU2017.cmake
@@ -344,7 +344,9 @@ endmacro()
# 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()