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()