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

Commits:

1 changed file:

Changes:

  • bin/cross-build-world.sh
    ... ... @@ -14,6 +14,8 @@ 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=
    
    17 19
     
    
    18 20
     while getopts "cirlXB:G:" arg
    
    19 21
     do
    
    ... ... @@ -59,6 +61,16 @@ CROSS="`echo $2 | sed 's:/*$::'`"
    59 61
     SCRIPT="$3"
    
    60 62
     LISP="${4:-lisp}"
    
    61 63
     
    
    64
    +case `uname -s` in
    
    65
    +    Darwin)
    
    66
    +	;;
    
    67
    +    SunOS)
    
    68
    +	;;
    
    69
    +    Linux)
    
    70
    +	GEN_ERRNO=yes
    
    71
    +    *) ;;
    
    72
    +esac
    
    73
    +
    
    62 74
     if [ -z "$BOOTSTRAP" ]; then
    
    63 75
         CROSSBOOT="$TARGET/cross-bootstrap.lisp"
    
    64 76
     else
    
    ... ... @@ -84,6 +96,11 @@ then
    84 96
     		sed "s:^src:$CROSS:g" | xargs mkdir
    
    85 97
     fi
    
    86 98
     
    
    99
    +if [ "$GEN_ERRNO" = "yes" ]; then
    
    100
    +    # Generate code/unix-errno.lisp
    
    101
    +    $MAKE -C $TARGET/lisp ../code/unix-errno.lisp
    
    102
    +fi
    
    103
    +
    
    87 104
     echo cross boot = $CROSSBOOT
    
    88 105
     $LISP "$@" -noinit -nositeinit <<EOF
    
    89 106
     (in-package :cl-user)