From 15e7e061de50c1104a6391c9ecc725ce409980c9 Mon Sep 17 00:00:00 2001 From: Stas Boukarev Date: Fri, 4 Aug 2023 20:52:30 +0300 Subject: [PATCH] Speed up make-config.sh on darwin-arm64 macOS likes to phone home for each newly compiled executable, hardcode the output of grovel-features.sh --- make-config.sh | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/make-config.sh b/make-config.sh index bdb5fc5d4..6334c586f 100755 --- a/make-config.sh +++ b/make-config.sh @@ -761,21 +761,27 @@ case "$sbcl_arch" in ;; esac -# Use a little C program to try to guess the endianness. Ware -# cross-compilers! -# -# FIXME: integrate to grovel-features, mayhaps -if $android +if [ "$sbcl_os" = darwin -a "$sbcl_arch" = arm64 ] then + # Launching new executables is pretty slow on macOS, but this configuration is pretty uniform + echo ' :little-endian :os-provides-dlopen :os-provides-dladdr :os-provides-blksize-t :os-provides-suseconds-t' >> $ltf +else + # Use a little C program to try to guess the endianness. Ware + # cross-compilers! + # + # FIXME: integrate to grovel-features, mayhaps + if $android + then $CC tools-for-build/determine-endianness.c -o tools-for-build/determine-endianness android_run tools-for-build/determine-endianness >> $ltf -else + else $GNUMAKE -C tools-for-build determine-endianness -I ../src/runtime tools-for-build/determine-endianness >> $ltf + fi + export sbcl_os sbcl_arch android + sh tools-for-build/grovel-features.sh >> $ltf fi -export sbcl_os sbcl_arch android -sh tools-for-build/grovel-features.sh >> $ltf echo //finishing $ltf printf " %s" "`cat crossbuild-runner/backends/${sbcl_arch}/features`" >> $ltf