Skip to content

Commit 72e6124

Browse files
committed
Update cc_wrapper.sh.tpl
1 parent 0575539 commit 72e6124

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

toolchain/cc_wrapper.sh.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ fi
8585
OUTPUT=
8686

8787
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
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
9595
}
9696

9797
function sanitize_option() {

0 commit comments

Comments
 (0)