The LLVM-based D Compiler.
Find a file
2016-08-27 20:40:26 +02:00
bash_completion.d Use bash completion dir from config if available 2015-02-19 17:49:22 +02:00
cmake/Modules [cmake] Remove code that tries to resolve "~" in host compiler variable passed by the user. It conflicts with -DD_COMPILER="dmd", which is much more important to support. 2016-08-08 16:47:45 +02:00
ddmd Cherry-pick dlang/dmd@71294c1 (segfault with lazy typeid) 2016-08-20 13:48:59 +02:00
driver Streamline main() with DMD's (ddmd/mars.d) 2016-08-27 20:40:26 +02:00
gen Set DataLayout for inline-IR modules 2016-08-21 14:26:54 +02:00
ir Run functionSemantic() instead of full semantic3() to infer return type 2016-08-19 22:57:04 +02:00
runtime Merge pull request #1707 from klickverbot/cmake-target 2016-08-18 21:31:02 +02:00
tests Fix issue #1711 2016-08-21 14:26:23 +02:00
utils cmake: Move utils/ build rules into that subdirectory 2016-07-26 18:49:07 +01:00
vcbuild Windows: Detect Visual C++ Build Tools automatically 2016-08-16 21:23:21 +02:00
.clang-format .clang-format: Disable include sorting for now [nfc] 2016-03-27 12:08:21 +01:00
.clang-tidy clang-tidy: Add readability-else-after-return 2015-11-02 11:30:40 +02:00
.editorconfig Add a .editorconfig file for dfmt. The settings are the same as DMD's. [NFC] 2016-03-04 20:24:25 +01:00
.gitattributes set proper attributes for Windows 2014-07-01 20:02:51 +02:00
.gitmodules Imported D2 testsuite (v2.060) as submodule. 2012-09-07 03:51:31 +02:00
.travis.yml [Travis] Have one travis job use LDC's beta channel. 2016-08-15 20:11:07 +02:00
appveyor.yml CI: Parallelize dmd-testsuite execution 2016-08-15 00:01:17 +02:00
circle.yml CI: Parallelize dmd-testsuite execution 2016-08-15 00:01:17 +02:00
CMakeCPack.cmake Add CPack configuration for debian packages 2014-02-12 15:16:43 +01:00
CMakeLists.txt cmake: Split D module compile and link dependencies 2016-08-14 17:28:13 +02:00
Doxyfile Inlined sources in Doxygen docs (for tablet use) and increased DOT max. nodes to 1,000. 2015-02-20 14:57:44 +01:00
ldc2.conf.in Simplify and fix install target 2015-09-26 15:24:36 +02:00
ldc2_install.conf.in Dynamically load libcurl when needed (backport from post-2.068 upstream) 2015-08-29 14:56:43 +02:00
ldc2_phobos.conf.in [PGO] Add PGO to LDC. Supported for LLVM >= 3.7 2016-06-20 17:28:22 +02:00
LICENSE Fix LICENSE file. 2016-06-01 07:26:09 +02:00
README.md README: MSVC build tools are auto-detected now 2016-08-17 10:54:46 +02:00

LDC the LLVM-based D Compiler

Build Status Test Coverage Bountysource

The LDC project aims to provide a portable D programming language compiler with modern optimization and code generation capabilities.

The compiler uses the official DMD frontends to support the latest version of D2, and relies on the LLVM Core libraries for code generation.

LDC is fully Open Source; the parts of the code not taken/adapted from other projects are BSD-licensed (see the LICENSE file for details).

Please consult the D wiki for further information: http://wiki.dlang.org/LDC

D1 is no longer available; see the 'd1' Git branch for the last version supporting it.

Installation

From a pre-built package

Linux and OS X

Some package managers include recent versions of LDC, so manually installing it might not be necessary. For several platforms, there are also stand-alone binary builds available at the GitHub release page.

Distribution Command
Arch Linux pacman -S ldc
Debian apt-get install ldc
Fedora yum install ldc
Gentoo layman -a ldc
HomeBrew brew install ldc
Ubuntu apt-get install ldc
Windows

The latest official releases can be downloaded from the GitHub release page.

For bleeding-edge users, we also provide the latest successful continuous integration builds.

LDC for Windows relies on the Microsoft linker. So you'll either need Visual Studio (2015 is greatly encouraged; 2013 works too if you build LDC yourself) with Visual C++, or the stand-alone Visual C++ Build Tools.

Building from source

In-depth material on building and installing LDC and the standard libraries is available on the project wiki for Linux and OS X and Windows.

If you have a working C++ build environment, CMake, a current LLVM (>= 3.5), and libconfig available there should be no big surprises. Building LDC also requires a working D compiler, DMD and LDC are supported. (LDC 0.17 is the last version that does not need a D compiler, and for that reason we try to maintain it in the 'ltsmaster' branch).

Do not forget to make sure all the submodules (druntime, phobos, dmd-testsuite) are up to date:

$ cd ldc
$ git submodule update --recursive --init

Contact

The best way to get in touch with the developers is either via the digitalmars.D.ldc forum/newsgroup/mailing list (http://forum.dlang.org) or our Gitter chat. There is also the #ldc IRC channel on FreeNode.

For further documentation, contributor information, etc. please see the D wiki: http://wiki.dlang.org/LDC

Feedback of any kind is very much appreciated!