Ticket #1212: tango-build.patch
| File tango-build.patch, 2.3 kB (added by ChristianK, 3 years ago) |
|---|
-
lib/unittest.sh
old new 18 18 --help: This message 19 19 --run-all: Reports result instead of breaking. Do not use this if you want to 20 20 run unittest runner through a debugger. 21 dmd: Builds unittests for dmd 22 gdc: Builds unittests for gdc 21 dmd: Builds unittests for dmd 22 gdc: Builds unittests for gdc 23 ldc: Builds unittests for ldc 23 24 24 25 <none>: Builds unittests for all known compilers.' 25 26 exit 0 … … 125 126 gdc) 126 127 GDC=1 127 128 ;; 129 ldc) 130 LDC=1 131 ;; 128 132 *) 129 133 usage 130 134 ;; … … 132 136 shift 133 137 done 134 138 135 if [ ! "$DMD" -a ! "$GDC" ]139 if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] 136 140 then 137 141 DMD=1 138 142 GDC=1 143 LDC=1 139 144 fi 140 145 141 146 if [ "$DMD" = "1" ] … … 146 151 then 147 152 compile gdc runUnitTest_gdc 148 153 fi 149 154 if [ "$LDC" = "1" ] 155 then 156 compile ldc runUnitTest_ldc 157 fi -
lib/build-tango.sh
old new 23 23 --debug: Will enable debug info 24 24 --warn: Will enable warnings 25 25 --verbose: Increase verbosity 26 <identifier> is one of {dmd, gdc, mac} and will build libtango.a,26 <identifier> is one of {dmd, gdc, ldc, mac} and will build libtango.a, 27 27 libgtango.a or universal Mac binaries respectively 28 28 29 29 The script must be called from within lib/ and the resulting … … 105 105 if filter $OBJNAME 106 106 then 107 107 if [ $VERBOSE == 1 ]; then echo "[$DC] $FILENAME"; fi 108 $DC $WARN -c $INLINE $DEBUG $RELEASE -version= Posix -version=Tango -of$OBJNAME $FILENAME108 $DC $WARN -c $INLINE $DEBUG $RELEASE -version=Tango -of$OBJNAME $FILENAME 109 109 if [ "$?" != 0 ] 110 110 then 111 111 return 1; … … 189 189 gdc) 190 190 build gdmd libgtango.a libgphobos.a 191 191 ;; 192 ldc) 193 build ldc libtango-user-ldc.a build-tango.sh 194 ;; 192 195 mac) 193 196 # build Universal Binary version of the Tango library 194 197 build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc










