The LLVM-based D Compiler.
Find a file
2017-10-17 18:37:08 +03:00
.circleci CircleCI: Exclude std.process unittests for now 2017-10-02 00:33:22 +02:00
bash_completion.d
cmake/Modules Merge pull request #2279 from kinke/cmake2 2017-08-19 21:58:13 +02:00
ddmd Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-10-14 12:28:32 +03:00
driver Jit TLS workaround 2017-10-16 14:54:42 +03:00
gen Hide unreferenced functions from jit module 2017-10-17 18:37:08 +03:00
ir Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-10-14 12:28:32 +03:00
res Merge 2.073.1 front-end 2017-02-18 14:18:31 +01:00
runtime Remove unnessary context struct packing 2017-10-16 16:43:42 +03:00
tests Optimize calls to thunks in jitted code and more tests 2017-10-17 13:46:53 +03:00
tools Create llvm-profdata-6.0.cpp 2017-07-26 18:03:00 +08:00
utils Fix LLVM 6.0 compilation. 2017-09-18 11:16:23 +01:00
vcbuild MSVC: Detect VS 2017 and VS Build Tools 2017 2017-04-10 19:35:06 +02:00
.clang-format clang-format files touched in d01a91f7 [nfc] 2017-05-24 21:35:40 +01:00
.clang-tidy
.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
.gitmodules Revert submodule 2017-08-27 17:43:00 +03:00
.travis.yml Fix LLVM 6.0 build. (#2342) 2017-09-30 17:58:08 +02:00
appveyor.yml AppVeyor: Upgrade to LDC-LLVM 5.0.0 2017-10-06 21:08:43 +02:00
CMakeCPack.cmake
CMakeLists.txt Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-10-14 12:28:32 +03:00
Doxyfile
ldc2.conf.in Add post-switches to config file sections 2017-08-20 14:25:05 +02:00
ldc2_install.conf.in Add post-switches to config file sections 2017-08-20 14:25:05 +02:00
ldc2_phobos.conf.in Merge remote-tracking branch 'origin/master' into runtime_compile_v5 2017-09-03 15:29:35 +03:00
LICENSE Bump year to 2017 in license file 2017-04-19 00:50:33 +02:00
README.md README.md: Add CircleCI badge 2017-09-11 17:11:57 +02:00

LDC the LLVM-based D Compiler

Build Status Build Status Build Status Build Status 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.

Command
Arch Linux pacman -S ldc
Debian apt install ldc
Fedora dnf install ldc
Gentoo layman -a ldc
Homebrew brew install ldc
Ubuntu apt 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 or 2017 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, and a current LLVM (≥ 3.7) 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 --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!