Mercurial > projects > ldc
comparison lphobos/build.sh @ 131:5825d48b27d1 trunk
[svn r135] * Merged DMD 1.025 *
* Fixed a minor linking order mishap *
* Added an command line option -annotate *
* Fixed some problems with running optimizations *
* Added std.stdio and dependencies to lphobos (still not 100% working, but compiles and links) *
* Fixed problems with passing aggregate types to variadic functions *
* Added initial code towards full GC support, currently based on malloc and friends, not all the runtime calls the GC yet for memory *
* Fixed problems with resolving nested function context pointers for some heavily nested cases *
* Redid function argument passing + other minor code cleanups, still lots to do on this end... *
author | lindquist |
---|---|
date | Fri, 04 Jan 2008 01:38:42 +0100 |
parents | 7f9a0a58394b |
children | 373489eeaf90 |
comparison
equal
deleted
inserted
replaced
130:a7dfa0ed966c | 131:5825d48b27d1 |
---|---|
3 echo "removing old objects" | 3 echo "removing old objects" |
4 mkdir -p obj | 4 mkdir -p obj |
5 rm -f obj/*.bc | 5 rm -f obj/*.bc |
6 rm -f ../lib/*.bc | 6 rm -f ../lib/*.bc |
7 | 7 |
8 LLVMDCFLAGS="-c -odobj" | 8 LLVMDCFLAGS="-c -odobj -g" |
9 REBUILDFLAGS="-dc=llvmdc-posix-internal -c -oqobj" | 9 REBUILDFLAGS="-dc=llvmdc-posix-internal -c -oqobj -g" |
10 | 10 |
11 echo "compiling contract runtime" | 11 echo "compiling contract runtime" |
12 llvmdc internal/contract.d -c -of../lib/llvmdcore.bc -noruntime || exit 1 | 12 llvmdc internal/contract.d -c -of../lib/llvmdcore.bc -noruntime || exit 1 |
13 | 13 |
14 echo "compiling common runtime" | 14 echo "compiling common runtime" |
54 rebuild llvmsupport.d $REBUILDFLAGS || exit 1 | 54 rebuild llvmsupport.d $REBUILDFLAGS || exit 1 |
55 llvm-link -f -o=../lib/llvmdcore.bc `ls obj/llvm.*.bc` ../lib/llvmdcore.bc || exit 1 | 55 llvm-link -f -o=../lib/llvmdcore.bc `ls obj/llvm.*.bc` ../lib/llvmdcore.bc || exit 1 |
56 | 56 |
57 echo "compiling garbage collector" | 57 echo "compiling garbage collector" |
58 llvmdc gc/gclinux.d $LLVMDCFLAGS || exit 1 | 58 llvmdc gc/gclinux.d $LLVMDCFLAGS || exit 1 |
59 llvmdc gc/gcstub.d $LLVMDCFLAGS -Igc || exit 1 | 59 llvmdc gc/gcx.d $LLVMDCFLAGS -Igc || exit 1 |
60 llvmdc gc/gcbits.d $LLVMDCFLAGS -Igc || exit 1 | 60 llvmdc gc/gcbits.d $LLVMDCFLAGS -Igc || exit 1 |
61 llvm-link -f -o=../lib/llvmdcore.bc obj/gclinux.bc obj/gcstub.bc obj/gcbits.bc ../lib/llvmdcore.bc || exit 1 | 61 llvmdc gc/gc.d $LLVMDCFLAGS -Igc || exit 1 |
62 llvm-link -f -o=../lib/llvmdcore.bc obj/gclinux.bc obj/gcx.bc obj/gcbits.bc obj/gc.bc ../lib/llvmdcore.bc || exit 1 | |
62 | 63 |
63 echo "compiling phobos" | 64 echo "compiling phobos" |
64 rebuild phobos.d $REBUILDFLAGS || exit 1 | 65 rebuild phobos.d $REBUILDFLAGS || exit 1 |
66 echo "linking phobos" | |
65 llvm-link -f -o=../lib/llvmdcore.bc `ls obj/std.*.bc` ../lib/llvmdcore.bc || exit 1 | 67 llvm-link -f -o=../lib/llvmdcore.bc `ls obj/std.*.bc` ../lib/llvmdcore.bc || exit 1 |
66 | 68 |
67 echo "optimizing" | 69 echo "optimizing" |
68 opt -f -std-compile-opts -o=../lib/llvmdcore.bc ../lib/llvmdcore.bc || exit 1 | 70 opt -f -std-compile-opts -o=../lib/llvmdcore.bc ../lib/llvmdcore.bc || exit 1 |
69 | 71 |