Raymond Toy pushed to branch issue-365-add-strerror at cmucl / cmucl Commits: 5b3ab0d6 by Raymond Toy at 2025-01-30T15:02:45-08:00 Generate unix-errno.lisp if needed. For Linux, we need to generate code/unix-errno.lisp before doing the cross-compile. (Or should we just not compile unix-errno.lisp since we probably don't need it to create the cross-compiled result?) - - - - - 1 changed file: - bin/cross-build-world.sh Changes: ===================================== bin/cross-build-world.sh ===================================== @@ -14,6 +14,8 @@ 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 @@ -59,6 +61,16 @@ CROSS="`echo $2 | sed 's:/*$::'`" SCRIPT="$3" LISP="${4:-lisp}" +case `uname -s` in + Darwin) + ;; + SunOS) + ;; + Linux) + GEN_ERRNO=yes + *) ;; +esac + if [ -z "$BOOTSTRAP" ]; then CROSSBOOT="$TARGET/cross-bootstrap.lisp" else @@ -84,6 +96,11 @@ then sed "s:^src:$CROSS:g" | xargs mkdir fi +if [ "$GEN_ERRNO" = "yes" ]; then + # Generate code/unix-errno.lisp + $MAKE -C $TARGET/lisp ../code/unix-errno.lisp +fi + echo cross boot = $CROSSBOOT $LISP "$@" -noinit -nositeinit <<EOF (in-package :cl-user) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/5b3ab0d6bebc791ab3649d1a... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/5b3ab0d6bebc791ab3649d1a... You're receiving this email because of your account on gitlab.common-lisp.net.