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

Ticket #1212: tango-build.patch

File tango-build.patch, 2.3 kB (added by ChristianK, 3 years ago)
  • lib/unittest.sh

    old new  
    1818  --help: This message 
    1919  --run-all: Reports result instead of breaking. Do not use this if you want to 
    2020         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 
    2324 
    2425  <none>: Builds unittests for all known compilers.' 
    2526  exit 0 
     
    125126        gdc) 
    126127            GDC=1 
    127128            ;; 
     129        ldc) 
     130            LDC=1 
     131            ;; 
    128132        *) 
    129133            usage 
    130134            ;; 
     
    132136    shift 
    133137done 
    134138 
    135 if [ ! "$DMD" -a ! "$GDC"
     139if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC"
    136140then 
    137141    DMD=1 
    138142    GDC=1 
     143    LDC=1 
    139144fi 
    140145 
    141146if [ "$DMD" = "1" ] 
     
    146151then 
    147152    compile gdc runUnitTest_gdc 
    148153fi 
    149  
     154if [ "$LDC" = "1" ] 
     155then 
     156    compile ldc runUnitTest_ldc 
     157fi 
  • lib/build-tango.sh

    old new  
    2323  --debug: Will enable debug info 
    2424  --warn: Will enable warnings 
    2525  --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, 
    2727                libgtango.a or universal Mac binaries respectively 
    2828 
    2929  The script must be called from within lib/ and the resulting 
     
    105105    if filter $OBJNAME 
    106106    then 
    107107        if [ $VERBOSE == 1 ]; then echo "[$DC] $FILENAME"; fi 
    108         $DC $WARN -c $INLINE $DEBUG $RELEASE -version=Posix -version=Tango -of$OBJNAME $FILENAME 
     108        $DC $WARN -c $INLINE $DEBUG $RELEASE -version=Tango -of$OBJNAME $FILENAME 
    109109        if [ "$?" != 0 ] 
    110110        then 
    111111            return 1; 
     
    189189        gdc) 
    190190            build gdmd libgtango.a libgphobos.a 
    191191            ;; 
     192        ldc) 
     193            build ldc libtango-user-ldc.a build-tango.sh 
     194            ;; 
    192195        mac) 
    193196            # build Universal Binary version of the Tango library 
    194197            build powerpc-apple-darwin8-gdmd libgtango.a.ppc libgphobos.a.ppc