Skip to content

Commit 1941d2e

Browse files
authored
Verbose mode should begin as soon as possible
Starting verbose mode before calling `which` will allow verbose mode to display errors from the `which` commands.
1 parent d1f6040 commit 1941d2e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ while [ "${#args[@]}" -ne 0 ]; do
131131
esac
132132
done
133133

134+
if [ $VERBOSE ]; then
135+
set -x
136+
fi
137+
134138
# Convert to full paths:
135139
HOST_COMPILER=$(which ${HOST_COMPILER})
136140
CUDA_COMPILER=$(which ${CUDA_COMPILER})
137141
# Make CUDA arch list compatible with cmake
138142
CUDA_ARCHS=$(echo "$CUDA_ARCHS" | tr ' ,' ';;')
139143

140-
if [ $VERBOSE ]; then
141-
set -x
142-
fi
143-
144144
# Begin processing unsets after option parsing
145145
set -u
146146

@@ -217,4 +217,4 @@ if command -v sccache >/dev/null; then
217217
source "./sccache_stats.sh" end
218218
else
219219
echo "sccache stats: N/A"
220-
fi
220+
fi

0 commit comments

Comments
 (0)