Skip to content

Commit ce83c7f

Browse files
committed
Respect KILN_NO_PRINT_VERSION
1 parent 930c252 commit ce83c7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ echo "Saving image" >&2
7272
${LISP_CMD} --load bootstrap/build1.lisp
7373

7474
chmod +x "$tmpfile"
75-
test -n "$("$tmpfile" version)"
75+
# Check the temp executable built correctly.
76+
if test -z "${KILN_NO_PRINT_VERSION:-}"; then
77+
test -n "$("$tmpfile" version)"
78+
fi
79+
# Rename the temp executable to the output executable.
7680
mv -f "$tmpfile" "$real_target_file"
81+
# Print the version.
7782
if test -z "${KILN_NO_PRINT_VERSION:-}"; then
7883
# real_target_file may be a relative path.
7984
PATH=$(pwd):$PATH "${real_target_file}" version

0 commit comments

Comments
 (0)