Skip to content

Commit

Permalink
Revert auto-formatting fix which makes the code less safe as the argu…
Browse files Browse the repository at this point in the history
…ments can contain spaces.
  • Loading branch information
ormandi authored and fmeum committed Nov 1, 2024
1 parent 397db2f commit 7dbe9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/osx_cc_wrapper.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function sanitize_option() {

cmd=()
for ((i = 0; i <= $#; i++)); do
if [[ ${!i} == @* && -r ${i:1} ]]; then
if [[ ${!i} == @* && -r "${i:1}" ]]; then
while IFS= read -r opt; do
if [[ ${opt} == "-fuse-ld=ld64.lld" ]]; then
cmd+=("-fuse-ld=lld")
Expand Down

0 comments on commit 7dbe9fc

Please sign in to comment.