Raymond Toy pushed to branch issue-365-add-strerror at cmucl / cmucl Commits: e8c92624 by Raymond Toy at 2025-01-30T07:56:23-08:00 Only create unix-errno.lisp if we support it No point in trying to generate unix-errno.lisp if we haven't added support for generating it. - - - - - c2e1a2f2 by Raymond Toy at 2025-01-30T07:57:34-08:00 Need to use list for building unix-errno.lisp - - - - - 2 changed files: - bin/build.sh - src/tools/worldbuild.lisp Changes: ===================================== bin/build.sh ===================================== @@ -129,8 +129,10 @@ buildit () if [ "$ENABLE" = "yes" ]; then $TOOLDIR/clean-target.sh $CLEAN_FLAGS $TARGET || { echo "Failed: $TOOLDIR/clean-target.sh"; exit 1; } - # Generate code/unix-errno.lisp - $MAKE -C $TARGET/lisp ../code/unix-errno.lisp + if [ "$GEN_ERRNO" = "yes" ]; then + # Generate code/unix-errno.lisp + $MAKE -C $TARGET/lisp ../code/unix-errno.lisp + fi time $BUILDWORLD $TARGET $OLDLISP $BOOT || { echo "Failed: $BUILDWORLD"; exit 1; } if [ "$REBUILD_LISP" = "yes" ]; then $TOOLDIR/rebuild-lisp.sh $TARGET @@ -154,6 +156,8 @@ 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 @@ -193,7 +197,9 @@ if [ -z "$BASE" ]; then sun4*) BASE=sparc ;; i86pc) BASE=sol-x86 ;; esac ;; - Linux) BASE=linux ;; + Linux) + GEN_ERRNO=yes + BASE=linux ;; # Add support for FreeBSD and NetBSD? Otherwise default to just build. *) BASE=build ;; esac ===================================== src/tools/worldbuild.lisp ===================================== @@ -139,7 +139,7 @@ ,@(when (or (c:backend-featurep :linux)) ;; This is currently only available for some OSes. Ideally, ;; it should be available for all OSes. - "target:code/unix-errno") + '("target:code/unix-errno")) ,@(when (c:backend-featurep :mach) '("target:code/mach" "target:code/mach-os")) View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/e3504ec0293902fde75fd9e... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/e3504ec0293902fde75fd9e... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)