mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
- It now actually compiles:
- import stdc.stdio for string formatting functions)
- remove extra '{'
- Use snprintf() instead of sprintf().
- Use return value from snprintf instead of strlen().
- Don't print the filename in Exception.writeOut() if it has zero length and
the line number is 0
(It would previously only skip these if the filename was null, but not if it
was a different empty string)
- Ignore empty filename + line number 0 in FrameInfo.writeOut() as well.
This should help get the runtime built.
FOR D1:
=======
1) Do a checkout of tango trunk into the ldc root dir (along dmd, gen, runtime etc).
* $ ls
* dmd dmd2 gen ir ...
* $ svn co http://svn.dsource.org/projects/tango/trunk tango
2) Compile the runtime
* sh build.sh
FOR D2:
=======
Highly experimental!!!
1) Do a checkout of druntime trunk into the ldc root dir (along dmd, gen, runtime etc).
* $ ls
* dmd dmd2 gen ir ...
* $ svn co http://svn.dsource.org/projects/druntime/trunk druntime
2) Patch druntime
* cd runtime
* sh patch-druntime.sh
3) Compile druntime
* cd ../druntime/src
* sh build-ldc.sh
=======
Enjoy!