Changeset 2629
- Timestamp:
- 10/05/07 05:40:22 (1 year ago)
- Files:
-
- trunk/lib/build-tango.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/build-tango.sh
r2591 r2629 29 29 30 30 UNAME=`uname` 31 INLINE="-inline" 32 DMDVERSION= 33 34 # Various functions to workaround bugs in the compilers 35 dmdversion() { 36 DMDVERSION=`$DC | head -1 | cut -c 26-` 37 echo ">> Using $DMDVERSION" 38 } 39 40 dmdbugs() { 41 dmdversion 42 if [ "$DMDVERSION" = "1.020" -o "$DMDVERSION" = "1.021" ] 43 then 44 INLINE="" 45 echo ">> Removing -inline due to bugzilla 668" 46 fi 47 } 48 49 compilerbugs() { 50 echo ">> Checking compiler version $DC" 51 if [ "$DC" = "dmd" ] 52 then 53 dmdbugs 54 fi 55 } 31 56 32 57 # This filter can probably be improved quite a bit, but should work … … 68 93 if filter $OBJNAME 69 94 then 70 $DC -c -v1 -inline-release -O -version=Posix -version=Tango -of$OBJNAME $FILENAME95 $DC -c -v1 $INLINE -release -O -version=Posix -version=Tango -of$OBJNAME $FILENAME 71 96 ar -r lib/$LIB $OBJNAME 2>&1 | grep -v "ranlib: .* has no symbols" 72 97 rm $OBJNAME … … 84 109 return 85 110 fi 111 112 # Check if the compiler used has known bugs 113 compilerbugs 86 114 87 115 if [ ! -e "$3" ]












