Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 776:6aa2b350c8cc

Show
Ignore:
Timestamp:
11/20/08 11:20:00 (2 months ago)
Author:
tomas@myhost
branch:
default
Message:

tango patch fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • runtime/ldc.diff

    r775 r776  
    1313 } 
    1414  
     15Index: lib/unittest.sh 
     16=================================================================== 
     17--- lib/unittest.sh (revision 4097) 
     18+++ lib/unittest.sh (working copy) 
     19@@ -18,8 +18,9 @@ 
     20   --help: This message 
     21   --run-all: Reports result instead of breaking. Do not use this if you want to 
     22          run unittest runner through a debugger. 
     23-  dmd: Builds unittests for dmd 
     24-  gdc: Builds unittests for gdc 
     25+  dmd:    Builds unittests for dmd 
     26+  gdc:    Builds unittests for gdc 
     27+  ldc: Builds unittests for ldc 
     28  
     29   <none>: Builds unittests for all known compilers.' 
     30   exit 0 
     31@@ -86,7 +87,7 @@ 
     32 void main() {} 
     33 EOF 
     34  
     35-        rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ 
     36+        rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ 
     37         -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ 
     38         tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ 
     39         tango/io/vfs/*.d tango/io/vfs/model/*.d \ 
     40@@ -125,6 +126,9 @@ 
     41         gdc) 
     42             GDC=1 
     43             ;; 
     44+        ldc) 
     45+            LDC=1 
     46+            ;; 
     47         *) 
     48             usage 
     49             ;; 
     50@@ -132,10 +136,11 @@ 
     51     shift 
     52 done 
     53  
     54-if [ ! "$DMD" -a ! "$GDC" ] 
     55+if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] 
     56 then 
     57     DMD=1 
     58     GDC=1 
     59+    LDC=1 
     60 fi 
     61  
     62 if [ "$DMD" = "1" ] 
     63@@ -146,4 +151,7 @@ 
     64 then 
     65     compile gdc runUnitTest_gdc 
     66 fi 
     67- 
     68+if [ "$LDC" = "1" ] 
     69+then 
     70+    compile ldc runUnitTest_ldc 
     71+fi 
    1572Index: lib/common/tango/core/BitManip.d 
    1673=================================================================== 
     
    109166             // NOTE: The ucontext implementation requires architecture specific 
    110167             //       data definitions to operate so testing for it must be done 
    111 @@ -2522,7 +2572,7 @@ 
     168@@ -2367,9 +2417,11 @@ 
     169             import tango.stdc.posix.ucontext; 
     170         } 
     171     } 
     172-    const size_t PAGESIZE; 
     173 } 
     174  
     175+// this currently need to be public for LDC 
     176+const size_t PAGESIZE; 
     177
     178 static this() 
     179 { 
     180     static if( is( typeof( GetSystemInfo ) ) ) 
     181@@ -2522,7 +2574,7 @@ 
    112182     } 
    113183 } 
     
    118188 // Fiber 
    119189 //////////////////////////////////////////////////////////////////////////////// 
    120 @@ -3204,6 +3254,28 @@ 
     190@@ -3204,6 +3256,28 @@ 
    121191  
    122192             assert( cast(uint) pstack & 0x0f == 0 ); 
     
    147217         { 
    148218             getcontext( &m_utxt ); 
    149 Index: lib/unittest.sh 
    150 =================================================================== 
    151 --- lib/unittest.sh (revision 4097) 
    152 +++ lib/unittest.sh (working copy) 
    153 @@ -18,8 +18,9 @@ 
    154    --help: This message 
    155    --run-all: Reports result instead of breaking. Do not use this if you want to 
    156           run unittest runner through a debugger. 
    157 -  dmd: Builds unittests for dmd 
    158 -  gdc: Builds unittests for gdc 
    159 +  dmd:    Builds unittests for dmd 
    160 +  gdc:    Builds unittests for gdc 
    161 +  ldc: Builds unittests for ldc 
    162   
    163    <none>: Builds unittests for all known compilers.' 
    164    exit 0 
    165 @@ -86,7 +87,7 @@ 
    166  void main() {} 
    167  EOF 
    168   
    169 -        rebuild -w -d -g -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ 
    170 +        rebuild -w -d -L-ldl -L-lz -L-lbz2 -debug=UnitTest -debug -full -clean -unittest \ 
    171          -version=UnitTest $EXE.d tango/core/*.d tango/core/sync/*.d tango/io/digest/*.d \ 
    172          tango/io/model/*.d tango/io/protocol/*.d tango/io/selector/*.d tango/io/*.d \ 
    173          tango/io/vfs/*.d tango/io/vfs/model/*.d \ 
    174 @@ -125,6 +126,9 @@ 
    175          gdc) 
    176              GDC=1 
    177              ;; 
    178 +        ldc) 
    179 +            LDC=1 
    180 +            ;; 
    181          *) 
    182              usage 
    183              ;; 
    184 @@ -132,10 +136,11 @@ 
    185      shift 
    186  done 
    187   
    188 -if [ ! "$DMD" -a ! "$GDC" ] 
    189 +if [ ! "$DMD" -a ! "$GDC" -a ! "$LDC" ] 
    190  then 
    191      DMD=1 
    192      GDC=1 
    193 +    LDC=1 
    194  fi 
    195   
    196  if [ "$DMD" = "1" ] 
    197 @@ -146,4 +151,7 @@ 
    198  then 
    199      compile gdc runUnitTest_gdc 
    200  fi 
    201 - 
    202 +if [ "$LDC" = "1" ] 
    203 +then 
    204 +    compile ldc runUnitTest_ldc 
    205 +fi 
    206219Index: lib/gc/basic/gcx.d 
    207220=================================================================== 
Copyright © 2008, LDC Development Team.