mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
In detail, this commit: - Changes the default version that is built to D2, use D_VERSION to override. - Reverts back to building static libs by default until we are certain shared libs work fine everywhere. - Fixes installation pathes so that CMAKE_INSTALL_PREFIX is respected; /etc as sysconf dir for /usr prefix is special-cased. - Fixes out-of-source builds again, and causes temporary files (idgen, …) not to be written to the source directory anymore. This is a slightly cleaned up version of the changes from https://github.com/ldc-developers/ldc/pull/12.
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:
=======
1) Check http://bitbucket.org/prokhin_alexy/ldc2/wiki/Home for up to date instructions
2) At the time of writing, this works:
* $ git clone https://github.com/AlexeyProkhin/druntime
* $ git clone https://github.com/AlexeyProkhin/phobos
3) Using cmake, set the D version to 2, then set the correct paths for druntime and phobos
4) Compile ldc2, druntime, and phobos
* $ make phobos2
=======
Enjoy!