From 82d7f65b0c423eb29ed4d0535b78bec463b60154 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 11 Jan 2014 23:19:23 +0900 Subject: [PATCH] fix testspr: for empty version list --- tools/testspr/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testspr/test.sh b/tools/testspr/test.sh index fa719b0a..a7b01c04 100755 --- a/tools/testspr/test.sh +++ b/tools/testspr/test.sh @@ -142,6 +142,12 @@ echo " include-paths = (${include_paths[*]})" echo " max-procs = ${max_procs}" echo " force = ${force}" +if [ -z "${gcc_version}" ]; then + gcc_version=" " +fi +if [ -z "${clang_version}" ]; then + clang_version=" " +fi for user_macro in ${user_macros}; do define_options="${define_options} -D${user_macro}" done