D C++ C CMake Makefile Shell Other
Latest commit bf05e91 Feb 19, 2017 @klickverbot klickverbot committed on GitHub Merge pull request #1882 from JohanEngelen/ptrarray
Consider pointer literals as constant in isConstLiteral.
Permalink
Failed to load latest commit information.
bash_completion.d Use bash completion dir from config if available Feb 19, 2015
cmake/Modules [CMake] Add option to build LDC using LTO: `-DLDC_BUILD_WITH_LTO={OFF… Feb 4, 2017
ddmd Add command-line option -transition=safe Feb 12, 2017
driver Micro-optimization Feb 18, 2017
gen Merge pull request #1882 from JohanEngelen/ptrarray Feb 19, 2017
ir Merge 2.072.2 front-end Jan 29, 2017
runtime Linux: Always build C parts of standard library as PIC Feb 19, 2017
tests Merge pull request #1882 from JohanEngelen/ptrarray Feb 19, 2017
tools Add support for LLVM 5.0 (current LLVM trunk) (#1985) Jan 25, 2017
utils Add support for LLVM 5.0 (current LLVM trunk) (#1985) Jan 25, 2017
vcbuild Windows: Detect Visual C++ Build Tools automatically Aug 16, 2016
.clang-format .clang-format: Disable include sorting for now [nfc] Mar 27, 2016
.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 Imported D2 testsuite (v2.060) as submodule. Sep 7, 2012
.travis.yml Travis and AppVeyor: Upgrade to LLVM 3.9.1 Jan 2, 2017
CMakeCPack.cmake Add CPack configuration for debian packages Feb 12, 2014
CMakeLists.txt Merge branch 'master' into merge-2.072 Feb 7, 2017
Doxyfile Inlined sources in Doxygen docs (for tablet use) and increased DOT ma… Feb 20, 2015
LICENSE Relicense profile-rt/d/ldc/profile.d (sole author Johan Engelen). Oct 6, 2016
README.md README: Fix Homebrew spelling, remove "Distribution" header Jan 13, 2017
appveyor.yml AppVeyor: Downgrade libcurl to 7.48.0 Feb 11, 2017
circle.yml [CircleCI] Use the latest LDC release: 1.1.0. (#1995) Feb 4, 2017
ldc2.conf.in Remove -flto-binary from ldc.conf default settings (revert 77bcc6e), … Nov 29, 2016
ldc2_install.conf.in Remove -flto-binary from ldc.conf default settings (revert 77bcc6e), … Nov 29, 2016
ldc2_phobos.conf.in Remove -flto-binary from ldc.conf default settings (revert 77bcc6e), … Nov 29, 2016

README.md

LDC – the LLVM-based D Compiler

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-get install ldc
Fedora yum install ldc
Gentoo layman -a ldc
Homebrew brew install ldc
Ubuntu apt-get 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 is greatly encouraged; 2013 works too if you build LDC yourself) 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, a current LLVM (>= 3.5), and libconfig 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 --recursive --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!