# HG changeset patch # User lindquist # Date 1191382875 -7200 # Node ID 8605242766084bcf1634b611b8ebea04c67cae6d # Parent 37a4fdab33fcbe1c34def07bd920bfa706326529 [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 diff -r 37a4fdab33fc -r 860524276608 lib/llvmdcore.bc Binary file lib/llvmdcore.bc has changed diff -r 37a4fdab33fc -r 860524276608 lib/lphobos.bc Binary file lib/lphobos.bc has changed diff -r 37a4fdab33fc -r 860524276608 lphobos/build.sh --- 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 diff -r 37a4fdab33fc -r 860524276608 test/imports2.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/imports2.d Wed Oct 03 05:41:15 2007 +0200 @@ -0,0 +1,6 @@ +module test; +import std.stdio; + +void main() { + writefln("Hello world!"[]); +} diff -r 37a4fdab33fc -r 860524276608 tester.sh --- a/tester.sh Wed Oct 03 04:56:32 2007 +0200 +++ b/tester.sh Wed Oct 03 05:41:15 2007 +0200 @@ -17,7 +17,7 @@ cat $1.ll exit $? elif [ "$2" = "run" ]; then - llvmdc $1 -Itest -odtest -of$1 && + llvmdc $1 lib/lphobos.bc -Itest -odtest -of$1 && $1 exit $? elif [ "$2" = "c" ]; then