Skip to content

Commit c2789f7

Browse files
committed
remove unused tmpfiles variable and format
1 parent 4073526 commit c2789f7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

toolchain/cc_wrapper.sh.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ function sanitize_option() {
6969
}
7070

7171
cmd=()
72-
tmpfiles=()
7372
for ((i = 0; i <= $#; i++)); do
7473
if [[ ${!i} == @* && -r "${i:1}" ]]; then
7574
# Create a new, sanitized file.
@@ -79,8 +78,8 @@ for ((i = 0; i <= $#; i++)); do
7978
echo "$(
8079
set -e
8180
sanitize_option "${opt}"
82-
)" >> "${tmpfile}"
83-
done <"${!i:1}"
81+
)" >>"${tmpfile}"
82+
done <"${!i:1}"
8483
cmd+=("@${tmpfile}")
8584
else
8685
opt="$(

toolchain/osx_cc_wrapper.sh.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ for ((i = 0; i <= $#; i++)); do
100100
CLEANUP_FILES+=("${tmpfile}")
101101
while IFS= read -r opt; do
102102
if [[ ${opt} == "-fuse-ld=ld64.lld" ]]; then
103-
echo "-fuse-ld=lld" >> ${tmpfile}
103+
echo "-fuse-ld=lld" >>${tmpfile}
104104
fi
105105
parse_option "$(
106106
set -e
107107
sanitize_option "${opt}"
108-
)" >> ${tmpfile}
108+
)" >>${tmpfile}
109109
done <"${!i:1}"
110110
cmd+=("@${tmpfile}")
111111
else

0 commit comments

Comments
 (0)