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
1 changed file:
Changes:
| ... | ... | @@ -41,7 +41,15 @@ fi |
| 41 | 41 | |
| 42 | 42 | # If version string not given, use the git version
|
| 43 | 43 | if [ -z "$VERSION" ]; then
|
| 44 | - VERSION=`bin/git-version.sh`
|
|
| 44 | + # Try to get the version from cmucl-version.h so that we match
|
|
| 45 | + # exactly what was used for building lisp. Otherwise, fall back
|
|
| 46 | + # to git-version.sh
|
|
| 47 | + FILE="src/lisp/cmucl-version.h"
|
|
| 48 | + if [ -f "$FILE" ]; then
|
|
| 49 | + VERSION=`grep CMUCL_VERSION "$FILE" | sed 's/^.*CMUCL_VERSION //'`
|
|
| 50 | + else
|
|
| 51 | + VERSION=`bin/git-version.sh`
|
|
| 52 | + fi
|
|
| 45 | 53 | fi
|
| 46 | 54 | |
| 47 | 55 | $TARGET/lisp/lisp -core $TARGET/lisp/kernel.core <<EOF
|