The LLVM-based D Compiler.
Find a file
2019-12-20 16:58:19 +01:00
.azure-pipelines Azure CI Android: Cross-compile i686/x86_64 libs too and include in armv7a/aarch64 packages 2019-12-20 00:30:39 +01:00
.circleci Upgrade LLVM to v9.0.1 and add Android/AArch64 CI job/package 2019-12-20 00:22:25 +01:00
.semaphoreci SemaphoreCI: Use -lowmem when building dmd-testsuite tools in parallel 2019-03-14 00:12:19 +01:00
cmake/Modules CMake: Fix hacky way of determining LLVM libs for jit-rt 2019-10-21 00:46:47 +02:00
dmd Merge upstream stable (cf3e6398ea) (#3261) 2019-12-20 02:23:05 +01:00
docs some docs 2018-09-06 21:22:10 +03:00
driver Remove _d_execBss{Beg,End}Addr, used for copy-relocation check (#3247) 2019-12-20 16:56:20 +01:00
gen Refactoring: Modernize some legacy asmstmt code (#3225) 2019-12-20 16:58:19 +01:00
ir Add explicit casts to llvm::MaybeAlign for setAlignment to use the new LLVM trunk API (silences deprecation messages of old API) 2019-10-18 00:16:24 +02:00
packaging Upgrade bundled dub to v1.18.0 2019-11-03 02:55:17 +01:00
res Upgrade front-end & libs to v2.086.0-beta.1 2019-04-23 22:13:13 +02:00
runtime druntime: Cherry-pick dlang/druntime#2558 (populate _tlsRanges in every thread) 2019-12-13 14:29:49 +01:00
tests Merge upstream stable (cf3e6398ea) (#3261) 2019-12-20 02:23:05 +01:00
tools CMake: Use add_executable() for LDC_LINK_MANUALLY 2019-09-29 15:20:04 +02: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
.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 Fix equality/identity comparisons of vectors with length >= 32 (#3209) 2019-10-29 22:43:45 +01:00
azure-pipelines.yml Azure CI: Deploy text file with listing of SHA256 hashes 2019-12-20 00:30:39 +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 Merge upstream stable (a5d1cae776) 2019-12-13 14:27:55 +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 Make gccbuiltins_*.di files available to non-installed compiler 2019-10-22 22:04:07 +02:00
ldc2_install.conf.in Remove default import/ldc import dir (=> object.d in import) and revise READMEs 2018-10-20 22:18:35 +02:00
ldc2_phobos.conf.in Make gccbuiltins_*.di files available to non-installed compiler 2019-10-22 22:04:07 +02: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 update chocolatey install instructions 2019-07-10 09:07:41 +08:00
shippable.yml Upgrade LLVM to v9.0.1 and add Android/AArch64 CI job/package 2019-12-20 00:22:25 +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!