From 3cdebc72b85c8838dd9b2838010ae854e911037d Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 1 Mar 2014 15:25:21 +0900 Subject: [PATCH] fix test.sh compiler-options --- tools/testspr/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testspr/test.sh b/tools/testspr/test.sh index 98c07abc..6a2e2c2c 100755 --- a/tools/testspr/test.sh +++ b/tools/testspr/test.sh @@ -157,6 +157,15 @@ done all_options="-v -Wall -pedantic ${define_options} ${include_options} ${common_options[*]}" vo=0 vkey="" +for option in ${compiler_options}; do + if [ ${vo} -eq 0 ]; then + vkey=${option} + vo=1 + else + compiler_specific_options[${vkey}]="${compiler_specific_options[${vkey}]} ${option}" + vo=0 + fi +done for option in ${version_options}; do if [ ${vo} -eq 0 ]; then vkey=${option}