Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ esac
# In vcheck mode, nothing is added in terms of extra search paths or
# libraries.
if [ -z "$mode" ] || [ "$mode" = ld ]; then
for arg in "$@"; do
for arg; do
case $arg in
-v|-V|--version|-dumpversion)
mode=vcheck
Expand All @@ -369,7 +369,7 @@ fi
# Finish setting up the mode.
if [ -z "$mode" ]; then
mode=ccld
for arg in "$@"; do
for arg; do
case $arg in
-E) mode=cpp; break ;;
-S) mode=as; break ;;
Expand Down Expand Up @@ -434,7 +434,7 @@ export PATH="$new_dirs"
if [ "$mode" = vcheck ]; then
full_command_list="$command"
extend full_command_list vcheck_flags
for arg in "$@"; do
for arg; do
append full_command_list "$arg"
done
execute
Expand All @@ -446,7 +446,7 @@ fi
add_rpaths=true
if [ "$mode" = ld ] || [ "$mode" = ccld ]; then
if [ "${SPACK_SHORT_SPEC#*darwin}" != "${SPACK_SHORT_SPEC}" ]; then
for arg in "$@"; do
for arg; do
if [ "$arg" = "-r" ]; then
if [ "$mode" = ld ] || [ "$mode" = ccld ]; then
add_rpaths=false
Expand Down
2 changes: 1 addition & 1 deletion test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fail() {
# no trailing newline.
concat() {
_first=1
for _piece in "$@"; do
for _piece; do
[ -z "$_piece" ] && continue
if [ "$_first" -eq 1 ]; then
printf '%s' "$_piece"
Expand Down