Skip to content

Commit 79a1b11

Browse files
committed
ci: empty target list if we're just formatting
1 parent d30b8ef commit 79a1b11

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/format_all.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ normal=$(tput sgr0)
99
$SCRIPT_DIR/../tools/check_unstaged.sh || exit
1010
export TOCK_NO_CHECK_UNSTAGED=1
1111

12+
# Explicitly build no targets if we're only formatting.
13+
#
14+
# This allows a system (i.e., a CI instance) with no cross-compilers to still
15+
# format without generating any warnings.
16+
export TOCK_TARGETS=
17+
1218
function opt_rebuild {
1319
if [ "$CI" == "true" ]; then
1420
echo "::group::Verbose Rebuild for $1"

0 commit comments

Comments
 (0)