History

[NOMERGE] configure: don't rebuild conftest and don't remove it

This is StreetLISP-specific, to avoid constant reconfigures since the meson would be rebuilding conftest each time and running configure again on every build.

Sigrid Solveig Haflínudóttir committed 10 months ago

Commit 7327aa21 parent 04da1001 file · +4 −2Browse files

Unified · Split

configure+4−2
@@ -449,8 +449,9 @@ if test x"$show_help" = "xyes" ; then · 448 unmodified lines
449449 fi
450450
451451 CONFTEST=./conftest$EXESUF
452+test -x $CONFTEST && CONFTEST_keep=1
452453 if test -z "$cross_prefix" \
453− && $cc -o $CONFTEST "$source_path/conftest.c" \
454+ && (test -x $CONFTEST || $cc -o $CONFTEST "$source_path/conftest.c") \
454455 && $CONFTEST 2>/dev/null; then
455456 cc_name="$($CONFTEST compiler)"
456457 gcc_major="$($CONFTEST version)"
@@ -729,7 +730,8 @@ fi · 272 unmodified lines
729730
730731 echo "@set VERSION $version" > config.texi
731732
732−rm -f $TMPN* $CONFTEST
733+rm -f $TMPN*
734+test -z "$CONFTEST_keep" && test -x $CONFTEST && $CONFTEST
733735
734736 # ---------------------------------------------------------------------------
735737 # build tree in object directory if source path is different from current one

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t