view druntime/src/build-ldc.sh @ 1506:76936858d1c6

Return `void*` from _d_allocclass so LLVM doesn't do weird things with it... This allows `-instcombine` followed by `-gvn` to do devirtualization, so add `-gvn` in strategic places in the default pass order.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 20 Jun 2009 11:39:13 +0200
parents da3262e901b4
children
line wrap: on
line source

#!/usr/bin/env bash

OLDHOME=$HOME
export HOME=`pwd`

goerror(){
    export HOME=$OLDHOME
    echo "="
    echo "= *** Error ***"
    echo "="
    exit 1
}

make clean -fldc-posix.mak          || goerror
make -fldc-posix.mak                || goerror
chmod 644 ../import/core/*.di       || goerror
chmod 644 ../import/core/sync/*.di  || goerror

export HOME=$OLDHOME