Showing posts with label ldc. Show all posts
Showing posts with label ldc. Show all posts

Wednesday, December 7, 2011

D language status, LDC2

https://github.com/ldc-developers/ldc

http://www.digitalmars.com/d/archives/digitalmars/D/State_of_LDC_148791.html


Wednesday, November 2, 2011

LDC under ubuntu 11.10 one more try

Installed through apt llvm-2.9, downloaded trunk LDC, executed ccmake, and added -ldl to LIBCONFIG_LDFLAGS. Successfully built!

Build tango, and adjusted /usr/local/etc/ldc.conf:

// This configuration file uses libconfig.
// See http://www.hyperrealm.com/libconfig/ for syntax details.

// Special macros:
// %%ldcbinarypath%%
//  - is replaced with the path to the directory holding the ldc executable

// The default group is required
default:
{
    // 'switches' holds array of string that are appends to the command line
    // arguments before they are parsed.
    switches = [
        "-I/usr/local/include/d",
        "-I/usr/local/include/d/tango/core/vendor",
        "-L-L/usr/local/lib",
        "-L-ltango-ldc",
        "-d-version=Tango",
        "-defaultlib=tango-ldc",
        "-debuglib=tango-ldc"
    ];
};

Monday, October 31, 2011

D programming under MacOS X 10.6, LDC

See http://dsource.org/projects/ldc/wiki/OSXBuildInstructions

Macports to install llvm package (2.9). Then get the latest LDC (tip) from bitbucket mercurial repo, ccmake, adjust paths to match those of MacPorts (/opt/local).

Then build and install tango, as described in the link above.

Edit ldc.conf


switches = [
"-I/opt/local/include/d",
"-I/opt/local/include/d/tango/core/vendor",
"-L-L%%ldcbinarypath%%/../lib",
"-L-ltango",
"-d-version=Tango",
"-defaultlib=tango-ldc",
"-debuglib=tango-ldc"
];

Thursday, January 27, 2011

LDC under MacOSX

Can't build it yet but the information I gathered is as follows:

Setup

sudo port install llvm
sudo port install llvm-devel
sudo port install mercurial
sudo port install ruby
sudo port install cmake

hg clone -r 0.9.2 https://bitbucket.org/lindquist/ldc
svn co http://svn.dsource.org/projects/tango/tags/releases/0.99.9 tango




Building LDC


cmake -DCMAKE_BUILD_TYPE=Release -DDEFAULT_TARGET="x86_64-apple-darwin10" ../ldc
make -j2




Building Tango





Links


https://bitbucket.org/lindquist/ldc
http://www.dsource.org/projects/tango
http://dsource.org/projects/ldc/wiki/BuildInstructionsTangoTrunk