The LLVM-based D Compiler.
Find a file
Martin c6132508b1 Don't waste an alloca for the nested context argument
And so get rid of all loads too; just use the untouched pointer argument
directly.
2018-02-11 18:43:02 +00:00
.circleci Upgrade dub to v1.7.2 (#2569) 2018-02-10 14:51:40 +01:00
bash_completion.d Use bash completion dir from config if available 2015-02-19 17:49:22 +02:00
cmake/Modules Make base LLVM version available in LDC code. (#2522) 2018-01-21 14:12:19 +01:00
dmd Merge branch 'master' into merge-2.078 2018-01-26 18:52:49 +01:00
docs Renamings 2017-11-10 22:00:03 +03:00
driver Small fix to fix compiler warning (gcc bug?) (#2564) 2018-02-08 22:30:36 +01:00
gen Don't waste an alloca for the nested context argument 2018-02-11 18:43:02 +00:00
ir Refactoring: Make DtoAllocaDump(DValue*) overloads handle DLValues 2018-01-14 22:42:27 +01:00
res Merge 2.076.0 front-end and stdlibs 2017-10-07 18:49:50 +02:00
runtime Fix druntime tests for BUILD_SHARED_LIBS=ON 2018-02-09 22:49:30 +01:00
tests Upgrade druntime and dmd-testsuite to v2.078.2 (#2565) 2018-02-09 12:20:42 +01:00
tools LLVM7 (#2490) 2018-01-14 07:57:55 +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 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 Travis: Allow LLVM 6.0 job to fail (as it always does) 2018-01-27 22:28:54 +01:00
appveyor.yml Upgrade dub to v1.7.2 (#2569) 2018-02-10 14:51:40 +01:00
CMakeCPack.cmake Add CPack configuration for debian packages 2014-02-12 15:16:43 +01:00
CMakeLists.txt Upgrade druntime and dmd-testsuite to v2.078.2 (#2565) 2018-02-09 12:20:42 +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 Add -link-defaultlib-shared and rename -link-debuglib (#2443) 2018-01-12 18:26:19 +01:00
ldc2_install.conf.in Add -link-defaultlib-shared and rename -link-debuglib (#2443) 2018-01-12 18:26:19 +01:00
ldc2_phobos.conf.in Get rid of our profile-rt libs 2018-02-03 14:56:30 +01:00
LICENSE Renamings 2017-11-10 22:00:03 +03:00
README.md README: Small tweaks/clarifications/plain text beautifications (#2553) 2018-02-04 02:40:33 +00:00

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 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!