Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3541

Show
Ignore:
Timestamp:
06/01/08 18:37:22 (6 months ago)
Author:
larsivi
Message:

Abort compilation if a file fails to compile, thanks MrSunshine?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/build-tango.sh

    r3536 r3541  
    102102        if [ $VERBOSE == 1 ]; then echo "[$DC] $FILENAME"; fi 
    103103        $DC $WARN -c $INLINE -release -O -version=Posix -version=Tango -of$OBJNAME $FILENAME 
     104        if [ "$?" != 0 ] 
     105        then 
     106            return 1; 
     107        fi 
    104108        ar -r lib/$LIB $OBJNAME 2>&1 | grep -v "ranlib: .* has no symbols" 
    105109        rm $OBJNAME 
     
    132136    do 
    133137        compile $file 
     138        if [ "$?" = 1 ] 
     139        then 
     140            die "Compilation of $file failed" 1  
     141        fi 
    134142    done 
    135143