
Raymond Toy pushed to branch issue-391-load-world-can-set-lisp-impl-ver at cmucl / cmucl Commits: 87ea5a78 by Raymond Toy at 2025-03-25T16:41:00-07:00 Get version from cmucl-version.h if possible If the `-v` option is not given, first try to get the version from src/lisp/cmucl-version.h if it exists. Otherwise just use git-version.sh. We do this so that `*lisp-implementation-version*` has the value that is compiled into lisp. - - - - - 1 changed file: - bin/load-world.sh Changes: ===================================== bin/load-world.sh ===================================== @@ -41,7 +41,15 @@ fi # If version string not given, use the git version if [ -z "$VERSION" ]; then - VERSION=`bin/git-version.sh` + # Try to get the version from cmucl-version.h so that we match + # exactly what was used for building lisp. Otherwise, fall back + # to git-version.sh + FILE="src/lisp/cmucl-version.h" + if [ -f "$FILE" ]; then + VERSION=`grep CMUCL_VERSION "$FILE" | sed 's/^.*CMUCL_VERSION //'` + else + VERSION=`bin/git-version.sh` + fi fi $TARGET/lisp/lisp -core $TARGET/lisp/kernel.core <<EOF View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/87ea5a78531b0dfc5f6e6b14... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/87ea5a78531b0dfc5f6e6b14... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)