File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,18 @@ if [[ ! -f ${toolchain_path_prefix}bin/clang ]]; then
82
82
exit 5
83
83
fi
84
84
85
+ OUTPUT=
86
+
87
+ function parse_option() {
88
+ local -r opt=" $1 "
89
+ if [[ " ${OUTPUT} " = " 1" ]]; then
90
+ OUTPUT=$opt
91
+ elif [[ " $opt " = " -o" ]]; then
92
+ # output is coming
93
+ OUTPUT=1
94
+ fi
95
+ }
96
+
85
97
function sanitize_option() {
86
98
local -r opt=$1
87
99
if [[ ${opt} == * /cc_wrapper.sh ]]; then
@@ -106,6 +118,7 @@ for ((i = 0; i <= $#; i++)); do
106
118
set -e
107
119
sanitize_option " ${opt} "
108
120
) "
121
+ parse_option " ${opt} "
109
122
echo " ${opt} " >> " ${tmpfile} "
110
123
done < " ${! i: 1} "
111
124
cmd+=(" @${tmpfile} " )
@@ -114,6 +127,7 @@ for ((i = 0; i <= $#; i++)); do
114
127
set -e
115
128
sanitize_option " ${! i} "
116
129
) "
130
+ parse_option " ${opt} "
117
131
cmd+=(" ${opt} " )
118
132
fi
119
133
done
You can’t perform that action at this time.
0 commit comments