[Git][cmucl/cmucl][issue-365-add-strerror] 2 commits: Building unix-errno.lisp is independent of of the -b option
Raymond Toy pushed to branch issue-365-add-strerror at cmucl / cmucl Commits: 0628c87a by Raymond Toy at 2025-01-30T17:19:07-08:00 Building unix-errno.lisp is independent of of the -b option Previously, we were setting `GEN_ERROR` if `$BASE` was not set (via the `-b` option). This is incorrect. The choice is independent of the value of the `$BASE` setting. Add a separate test for this. - - - - - fe12bd37 by Raymond Toy at 2025-01-30T17:22:00-08:00 Make code for setting of GEN_ERROR the same as in build.sh - - - - - 2 changed files: - bin/build.sh - bin/cross-build-world.sh Changes: ===================================== bin/build.sh ===================================== @@ -156,8 +156,6 @@ buildit () BUILDWORLD="$TOOLDIR/build-world.sh" BUILD_POT="yes" UPDATE_TRANS= -# Set to "yes" if we auto-generate code/unix-errno.lisp. -GEN_ERRNO= while getopts "123PRGo:b:v:uB:C:Ui:w:O:?" arg do @@ -198,7 +196,6 @@ if [ -z "$BASE" ]; then i86pc) BASE=sol-x86 ;; esac ;; Linux) - GEN_ERRNO=yes BASE=linux ;; # Add support for FreeBSD and NetBSD? Otherwise default to just build. *) BASE=build ;; @@ -207,6 +204,19 @@ fi echo base = $BASE +# Determine if we need to generate unix-errno.lisp + +# Set to "yes" if we auto-generate code/unix-errno.lisp. +GEN_ERRNO= + +case `uname -s` in + # Add more cases as we support more OSes + Linux) + GEN_ERRNO=yes + ;; +esac + + bootfiles_dir=$SRCDIR/bootfiles/$version if [ -n "$bootfiles" ]; then for file in $bootfiles; do ===================================== bin/cross-build-world.sh ===================================== @@ -14,8 +14,6 @@ usage() { MAKE=make INTERACTIVE=nil BREAK="" -# Set to "yes" if we auto-generate code/unix-errno.lisp. -GEN_ERRNO= while getopts "cirlXB:G:" arg do @@ -61,15 +59,14 @@ CROSS="`echo $2 | sed 's:/*$::'`" SCRIPT="$3" LISP="${4:-lisp}" +# Determine if we need to generate unix-errno.lisp +# Set to "yes" if we auto-generate code/unix-errno.lisp. +GEN_ERRNO= case `uname -s` in - Darwin) - ;; - SunOS) - ;; + # Add more cases as we support more OSes Linux) GEN_ERRNO=yes ;; - *) ;; esac if [ -z "$BOOTSTRAP" ]; then View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/3cccf95a5ccbe09b22b6fbf... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/3cccf95a5ccbe09b22b6fbf... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)