The LLVM-based D Compiler.
Find a file
2020-02-01 02:52:35 +01:00
.azure-pipelines Azure CI: Use 7zip for .tar.xz archiving on Linux hosts 2020-01-25 16:14:26 +01:00
.circleci Remove Semaphore CI 2020-01-27 02:22:10 +01:00
cmake/Modules Update FindLLVM.cmake to cope with new llvm-config names 2020-01-17 13:05:09 +01:00
dmd Merge upstream stable (890f7eb2e9) (#3296) 2020-01-27 21:40:49 +01:00
docs some docs 2018-09-06 21:22:10 +03:00
driver Fix StringRef conversion for LLVM 11 (777180a32b61070a10dd330b4f038bf24e916af1) (#3305) 2020-02-01 02:52:35 +01:00
gen Fix StringRef conversion for LLVM 11 (777180a32b61070a10dd330b4f038bf24e916af1) (#3305) 2020-02-01 02:52:35 +01:00
ir Slightly revise iOS additions 2020-01-28 20:45:07 +01:00
packaging Bump bundled dub version to 1.19.0 2020-01-12 22:27:36 +01:00
res Upgrade front-end & libs to v2.086.0-beta.1 2019-04-23 22:13:13 +02:00
runtime Fix StringRef conversion for LLVM 11 (777180a32b61070a10dd330b4f038bf24e916af1) (#3305) 2020-02-01 02:52:35 +01:00
tests Merge upstream stable (890f7eb2e9) (#3296) 2020-01-27 21:40:49 +01:00
tools Config file: Use a separate section for multilib targets (#3276) 2020-01-12 15:48:11 +01:00
utils CMake: Fix LLVM_INTRINSIC_TD_PATH and LDC_INSTALL_PREFIX expansion (#3223) 2019-11-11 20:54:56 +01:00
vcbuild Auto-detect Visual Studio 2019+ (#3044) 2019-04-03 20:40:19 +02:00
.cirrus.yml Remove Semaphore CI 2020-01-27 02:22:10 +01:00
.clang-format clang-format files touched in d01a91f7 [nfc] 2017-05-24 21:35:40 +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 Use https URLs for git submodules (#2051) 2017-03-26 03:37:53 +02:00
.travis.yml Merge pull request #3287 from kinke/permutations 2020-01-25 21:01:59 +01:00
azure-pipelines.yml CircleCI: Use gdmd as host compiler for ubuntu:rolling job 2020-01-18 17:25:47 +01:00
CHANGELOG.md Update CHANGELOG.md 2019-12-20 15:56:01 +01:00
CMakeCPack.cmake Add CPack configuration for debian packages 2014-02-12 15:16:43 +01:00
CMakeLists.txt Upgrade frontend & libs to v2.090.0-beta.1 2019-12-22 16:29:29 +01: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 Config file: Use a separate section for multilib targets (#3276) 2020-01-12 15:48:11 +01:00
ldc2_install.conf.in Config file: Use a separate section for multilib targets (#3276) 2020-01-12 15:48:11 +01:00
ldc2_phobos.conf.in Config file: Use a separate section for multilib targets (#3276) 2020-01-12 15:48:11 +01:00
LICENSE Make LDC custom passes available to jit, add API for jit compiler options (#2758) 2019-09-08 09:16:05 +03:00
README.md Remove Semaphore CI 2020-01-27 02:22:10 +01:00
shippable.yml Merge pull request #3287 from kinke/permutations 2020-01-25 21:01:59 +01:00

LDC the LLVM-based D Compiler

Latest stable release Build status 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 source 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

Portable stand-alone binary builds for common platforms (incl. Linux, macOS and Windows) are available at the GitHub release page.

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

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 (but note that these packages might be outdated as they are not currently integrated into the project release process):

Command
Android in Termux app: pkg install ldc
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 install ldc
Docker docker pull dlang2/ldc-ubuntu

Targeting Android

You can find full instructions on cross-compiling or natively compiling for Android on the wiki.

Building from source

In-depth material on building and installing LDC and the standard libraries is available on the project wiki for Linux, macOS, BSD, and Android and Windows.

If you have a working C++/D build environment, CMake, and a current LLVM version (≥ 3.9) 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).

Cross-compiling

We've recently added a cross-compilation tool to make it easier to build the D runtime and standard library for other platforms, ldc-build-runtime. Full instructions and example invocations are provided on its wiki page.

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!