Mercurial > projects > ldc
diff lphobos/build.sh @ 16:860524276608 trunk
[svn r20] * Added a simple compiletime std.stdio by downs
* Added a simple lphobos of std.stdio (so far)
* 'tester.sh run' now links to lphobos
author | lindquist |
---|---|
date | Wed, 03 Oct 2007 05:41:15 +0200 |
parents | dafae18f9c08 |
children | 4648206ca213 |
line wrap: on
line diff
--- a/lphobos/build.sh Wed Oct 03 04:56:32 2007 +0200 +++ b/lphobos/build.sh Wed Oct 03 05:41:15 2007 +0200 @@ -6,6 +6,7 @@ dc_cmd="llvmdc" fi +# build runtime $dc_cmd internal/contract.d \ internal/arrays.d \ internal/moduleinit.d \ @@ -19,6 +20,10 @@ opt -f -std-compile-opts -o=../lib/llvmdcore.bc obj/all.bc || exit 1 +# build phobos +$dc_cmd std/stdio.d -c -odobj || exit 1 +llvm-link -f -o=../lib/lphobos.bc obj/stdio.bc || exit 1 + if [ "$1" = "ll" ]; then llvm-dis -f -o=all.ll ../lib/llvmdcore.bc || exit 1 fi