Raymond Toy pushed to branch issue-365-add-strerror at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • bin/build.sh
    ... ... @@ -156,8 +156,6 @@ buildit ()
    156 156
     BUILDWORLD="$TOOLDIR/build-world.sh"
    
    157 157
     BUILD_POT="yes"
    
    158 158
     UPDATE_TRANS=
    
    159
    -# Set to "yes" if we auto-generate code/unix-errno.lisp.
    
    160
    -GEN_ERRNO=
    
    161 159
     
    
    162 160
     while getopts "123PRGo:b:v:uB:C:Ui:w:O:?" arg
    
    163 161
     do
    
    ... ... @@ -198,7 +196,6 @@ if [ -z "$BASE" ]; then
    198 196
     	    i86pc) BASE=sol-x86 ;;
    
    199 197
     	  esac ;;
    
    200 198
           Linux)
    
    201
    -	  GEN_ERRNO=yes
    
    202 199
     	  BASE=linux ;;
    
    203 200
           # Add support for FreeBSD and NetBSD?  Otherwise default to just build.
    
    204 201
           *) BASE=build ;;
    
    ... ... @@ -207,6 +204,19 @@ fi
    207 204
     
    
    208 205
     echo base = $BASE
    
    209 206
     
    
    207
    +# Determine if we need to generate unix-errno.lisp
    
    208
    +
    
    209
    +# Set to "yes" if we auto-generate code/unix-errno.lisp.
    
    210
    +GEN_ERRNO=
    
    211
    +
    
    212
    +case `uname -s` in
    
    213
    +    # Add more cases as we support more OSes
    
    214
    +    Linux)
    
    215
    +	GEN_ERRNO=yes
    
    216
    +	;;
    
    217
    +esac
    
    218
    +
    
    219
    +
    
    210 220
     bootfiles_dir=$SRCDIR/bootfiles/$version
    
    211 221
     if [ -n "$bootfiles" ]; then
    
    212 222
         for file in $bootfiles; do
    

  • bin/cross-build-world.sh
    ... ... @@ -14,8 +14,6 @@ usage() {
    14 14
     MAKE=make
    
    15 15
     INTERACTIVE=nil
    
    16 16
     BREAK=""
    
    17
    -# Set to "yes" if we auto-generate code/unix-errno.lisp.
    
    18
    -GEN_ERRNO=
    
    19 17
     
    
    20 18
     while getopts "cirlXB:G:" arg
    
    21 19
     do
    
    ... ... @@ -61,15 +59,14 @@ CROSS="`echo $2 | sed 's:/*$::'`"
    61 59
     SCRIPT="$3"
    
    62 60
     LISP="${4:-lisp}"
    
    63 61
     
    
    62
    +# Determine if we need to generate unix-errno.lisp
    
    63
    +# Set to "yes" if we auto-generate code/unix-errno.lisp.
    
    64
    +GEN_ERRNO=
    
    64 65
     case `uname -s` in
    
    65
    -    Darwin)
    
    66
    -	;;
    
    67
    -    SunOS)
    
    68
    -	;;
    
    66
    +    # Add more cases as we support more OSes
    
    69 67
         Linux)
    
    70 68
     	GEN_ERRNO=yes
    
    71 69
     	;;
    
    72
    -    *) ;;
    
    73 70
     esac
    
    74 71
     
    
    75 72
     if [ -z "$BOOTSTRAP" ]; then