Skip to content

redstar/ldc

This branch is 39737 commits behind ldc-developers/ldc:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 18, 2018
Feb 19, 2015
Jan 21, 2018
Feb 16, 2018
Nov 10, 2017
Feb 25, 2018
Feb 24, 2018
Jan 14, 2018
Oct 7, 2017
Feb 24, 2018
Feb 25, 2018
Jan 13, 2018
Sep 18, 2017
Apr 10, 2017
May 24, 2017
Nov 2, 2015
Mar 4, 2016
Jul 1, 2014
Mar 26, 2017
Jan 27, 2018
Feb 12, 2014
Feb 18, 2018
Feb 20, 2015
Nov 10, 2017
Feb 4, 2018
Feb 10, 2018
Feb 18, 2018
Jan 12, 2018
Feb 3, 2018

Repository files navigation

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!

About

A LLVM-based compiler for the D programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • D 64.2%
  • C++ 33.9%
  • CMake 1.6%
  • Shell 0.1%
  • C 0.1%
  • Makefile 0.1%