Skip to content

ljmf00-wekaio/ldc

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

Folders and files

NameName
Last commit message
Last commit date
Jun 12, 2024
Sep 1, 2024
May 19, 2024
Aug 20, 2024
Sep 6, 2018
Sep 2, 2024
Aug 2, 2024
Aug 18, 2024
Aug 10, 2024
Aug 20, 2024
Aug 24, 2024
Aug 7, 2024
May 20, 2024
Aug 10, 2024
May 24, 2017
Nov 2, 2015
Jun 13, 2020
Feb 11, 2023
Nov 20, 2022
Aug 20, 2024
Feb 12, 2014
Jul 16, 2024
Feb 20, 2015
Mar 3, 2020
Feb 5, 2024
Feb 24, 2023
May 20, 2024
May 20, 2024
May 20, 2024

Repository files navigation

LDC – the LLVM-based D Compiler

Latest release Latest stable release Build status Build status Build status Build status

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 (and a Windows installer) for common platforms (incl. Linux, macOS, Windows, FreeBSD and Android) are available at the GitHub release page. For Windows, the Visual D installer also comes with a bundled LDC.

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 these official packages from GitHub:

curl -fsS https://dlang.org/install.sh | bash -s ldc

In addition, LDC is available from various package managers (but note that these packages are community-maintained, might be outdated and not offer the full feature set of official packages from GitHub):

Command
Alpine Linux apk add ldc
Android in Termux app: pkg install ldc
Arch Linux pacman -S ldc
Chocolatey choco install ldc
Debian apt install ldc
Docker docker pull dlang2/ldc-ubuntu
Fedora dnf install ldc
FreeBSD pkg install ldc
Gentoo layman -a ldc
Homebrew brew install ldc
Nix/NixOS nix-env -i ldc
OpenBSD pkg_add ldc
Snap snap install --classic --channel=edge ldc2
Ubuntu apt install ldc
Void xbps-install -S ldc

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 recent LLVM version (≥ 11) available, there should be no big surprises. Do not forget to make sure the Phobos submodule is up to date:

$ cd ldc
$ git submodule update --init

(DMD, GDC and LDC are supported as host compilers. For bootstrapping purposes, we recommend GDC via its gdmd wrapper.)

Cross-compilation

Similar to other LLVM-based compilers, cross-compiling with LDC is simple. Full instructions and example invocations are provided on the dedicated Wiki page.

Targeting Android

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

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

The LLVM-based D Compiler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • D 76.6%
  • C++ 14.9%
  • HTML 5.0%
  • C 2.4%
  • CMake 0.5%
  • Makefile 0.2%
  • Other 0.4%