aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Chen <d.c.ddcc@gmail.com>2019-10-22 04:44:01 +0000
committerDominic Chen <d.c.ddcc@gmail.com>2019-10-22 04:44:01 +0000
commit3732ea5935e920ff5d9451a82e420e6b11aed4f9 (patch)
tree3b102b6321014c4af349aff40d484b945c66ef3f
parent004bc2695c8cd7c957481893842730683fac4b92 (diff)
downloadtest-suite-master.tar.gz
[SPECCPU2017] Check for 'all' input data directory before generating commandHEADmaster
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
-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()