D C++ CMake Shell C Makefile
Clone or download
Permalink
Failed to load latest commit information.
.circleci CircleCI: Exclude obsolete dub settings file from package (#2697) May 12, 2018
.semaphoreci SemaphoreCI: Use Ubuntu's compiler-rt dev package (#2698) May 12, 2018
bash_completion.d Use bash completion dir from config if available Feb 19, 2015
cmake/Modules Fix compilation issues on macOS with DMD host compiler >= 2.079 May 19, 2018
dmd MSVC: Port Rainer's upstream extern(C++) method ABI fixes Jun 19, 2018
docs Renamings Nov 10, 2017
driver Fix compilation with current LLVM trunk. (#2722) Jun 2, 2018
gen Merge pull request #2750 from Hardcode84/fix_gc2stack Jun 20, 2018
ir Fix warning wrt. initialization order Jun 1, 2018
res Upgrade to D v2.079.0-beta.1 Feb 20, 2018
runtime druntime: Disable GC2Stack pass for 1 standalone test Jun 18, 2018
tests Merge pull request #2750 from Hardcode84/fix_gc2stack Jun 20, 2018
tools Update LLVM trunk version of llvm-profdata (#2753) Jun 22, 2018
utils [CMake] Small changes to CMake message output to aid with configuring… Mar 25, 2018
vcbuild MSVC: Detect VS 2017 and VS Build Tools 2017 Apr 10, 2017
.clang-format clang-format files touched in d01a91f [nfc] May 24, 2017
.clang-tidy clang-tidy: Add readability-else-after-return Nov 2, 2015
.editorconfig Add a .editorconfig file for dfmt. The settings are the same as DMD's… Mar 4, 2016
.gitattributes set proper attributes for Windows Jul 1, 2014
.gitmodules Revert submodule Aug 27, 2017
.travis.yml Disable spir-v test, such that CI is green again. (#2710) May 23, 2018
CHANGELOG.md Add changelog file based on release notes, starting with v0.17 (#2674) May 2, 2018
CMakeCPack.cmake Add CPack configuration for debian packages Feb 12, 2014
CMakeLists.txt Upgrade to D v2.080.1 (#2737) Jun 8, 2018
Doxyfile Inlined sources in Doxygen docs (for tablet use) and increased DOT ma… Feb 20, 2015
LICENSE Renamings Nov 10, 2017
README.md Added Docker install instructions (#2656) Apr 16, 2018
appveyor.yml Win64: fix terminate handler for VC runtime DLL version 14.14.x.y (#2739 Jun 9, 2018
ldc2.conf.in Config file: Treat section names as target triple regexps (#2718) Jun 1, 2018
ldc2_install.conf.in Config file: Treat section names as target triple regexps (#2718) Jun 1, 2018
ldc2_phobos.conf.in Config file: Treat section names as target triple regexps (#2718) Jun 1, 2018

README.md

LDC – the LLVM-based D Compiler

Build Status Build Status Build Status Build Status Bountysource

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

The compiler uses the official DMD frontend 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: https://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

For several platforms, there are stand-alone binary builds available at the GitHub release page.

For bleeding-edge users, we also provide the latest successful Continuous Integration builds with enabled LLVM & LDC assertions (significantly increasing compile times).

The dlang.org install script can also be used to install LDC:

curl -fsS https://dlang.org/install.sh | bash -s ldc

In addition, LDC is available from various package managers:

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
Snap snap install --classic --channel=edge ldc2
Nix/NixOS nix-env -i ldc
Chocolatey choco ldc
Docker docker pull dlanguage/ldc

Note that these packages might be outdated as they are not currently integrated into the project release process.

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 with enabled LLVM & LDC assertions (significantly increasing compile times).

LDC for Windows relies on the Microsoft linker and runtime libraries, which can be obtained by either installing 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 macOS and Windows.

If you have a working C++/D build environment, CMake, and a current LLVM version (≥ 3.7) available, there should be no big surprises. Do not forget to make sure all the submodules (druntime, phobos, dmd-testsuite) are up to date:

$ cd ldc
$ git submodule update --init

(DMD and LDC are supported as host compilers. For bootstrapping purposes, LDC 0.17, the last version not to require a D compiler, is maintained in the ltsmaster branch).

Contact

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

For further documentation, contributor information, etc. please see the D wiki.

Feedback of any kind is very much appreciated!