{"id":13646280,"url":"https://github.com/ldc-developers/ldc","last_synced_at":"2025-05-14T00:09:19.402Z","repository":{"id":37275989,"uuid":"2174666","full_name":"ldc-developers/ldc","owner":"ldc-developers","description":"The LLVM-based D Compiler.","archived":false,"fork":false,"pushed_at":"2025-05-06T19:07:52.000Z","size":175368,"stargazers_count":1260,"open_issues_count":554,"forks_count":267,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-05-06T20:23:24.285Z","etag":null,"topics":["compiler","d","dlang","ldc","llvm"],"latest_commit_sha":null,"homepage":"http://wiki.dlang.org/LDC","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ldc-developers.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"kinke"}},"created_at":"2011-08-08T17:10:27.000Z","updated_at":"2025-05-06T05:32:11.000Z","dependencies_parsed_at":"2023-02-19T09:46:02.333Z","dependency_job_id":"e5485337-7393-454c-be0f-ee679fd75aeb","html_url":"https://github.com/ldc-developers/ldc","commit_stats":{"total_commits":33151,"total_committers":569,"mean_commits":58.26186291739894,"dds":0.8810292298874846,"last_synced_commit":"8a30f4de755b37656305c36f18f8d3ea32a971de"},"previous_names":[],"tags_count":523,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldc-developers%2Fldc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldc-developers%2Fldc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldc-developers%2Fldc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldc-developers%2Fldc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldc-developers","download_url":"https://codeload.github.com/ldc-developers/ldc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254044127,"owners_count":22005080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","d","dlang","ldc","llvm"],"created_at":"2024-08-02T01:02:52.025Z","updated_at":"2025-05-14T00:09:14.394Z","avatar_url":"https://github.com/ldc-developers.png","language":"D","funding_links":["https://github.com/sponsors/kinke"],"categories":["D","Compilers","Recently Updated","Starchart"],"sub_categories":["Bare metal / kernel development","[Jul 26, 2025](/content/2025/07/26/README.md)"],"readme":"LDC – the LLVM-based D Compiler\n===============================\n\n[![Latest release](https://img.shields.io/github/v/release/ldc-developers/ldc?include_prereleases\u0026label=latest)][8]\n[![Latest stable release](https://img.shields.io/github/v/release/ldc-developers/ldc?label=stable)][0]\n[![Build status](https://img.shields.io/circleci/project/github/ldc-developers/ldc/master?logo=CircleCI\u0026label=CircleCI)][3]\n[![Build status](https://img.shields.io/cirrus/github/ldc-developers/ldc/master?label=Cirrus%20CI\u0026logo=Cirrus%20CI)][4]\n[![Build status](https://img.shields.io/github/actions/workflow/status/ldc-developers/ldc/main.yml?branch=master\u0026label=GitHub%20Actions%20%28main%29\u0026logo=github)][7]\n[![Build status](https://img.shields.io/github/actions/workflow/status/ldc-developers/ldc/supported_llvm_versions.yml?branch=master\u0026label=GitHub%20Actions%20%28LLVM%29\u0026logo=github)][7]\n\nThe LDC project provides a portable D programming language compiler\nwith modern optimization and code generation capabilities.\n\nThe compiler uses the official DMD frontend to support the latest\nversion of D2, and relies on the LLVM Core libraries for code\ngeneration.\n\nLDC is fully Open Source; the parts of the source code not taken/adapted from\nother projects are BSD-licensed (see the LICENSE file for details).\n\nPlease consult the D wiki for further information:\nhttps://wiki.dlang.org/LDC\n\nD1 is no longer available; see the `d1` Git branch for the last\nversion supporting it.\n\n\nInstallation\n------------\n\n### From a pre-built package\n\nPortable stand-alone binary builds (and a Windows installer) for common\nplatforms (incl. Linux, macOS, Windows, FreeBSD and Android) are available\nat the [GitHub release page](https://github.com/ldc-developers/ldc/releases).\nFor Windows, the [Visual D installer](https://rainers.github.io/visuald/visuald/StartPage.html)\nalso comes with a bundled LDC.\n\nFor bleeding-edge users, we also provide the [latest successful Continuous\nIntegration builds](https://github.com/ldc-developers/ldc/releases/tag/CI)\nwith enabled LLVM \u0026 LDC assertions (increasing compile times by roughly 50%).\n\nThe [dlang.org install script](https://dlang.org/install.html) can also be\nused to install these official packages from GitHub:\n\n    curl -fsS https://dlang.org/install.sh | bash -s ldc\n\nIn addition, LDC is available from various package managers (but note that\nthese packages are **community-maintained, might be outdated and not offer\nthe full feature set of official packages from GitHub**):\n\n|              | Command                                      |\n| ------------ | -------------------------------------------- |\n| Alpine Linux | `apk add ldc`                              |\n| Android      | in [Termux app](https://play.google.com/store/apps/details?id=com.termux\u0026hl=en): `pkg install ldc` |\n| Arch Linux   | `pacman -S ldc`                              |\n| Chocolatey   | `choco install ldc`                          |\n| Debian       | `apt install ldc`                            |\n| Docker       | `docker pull dlang2/ldc-ubuntu`              |\n| Fedora       | `dnf install ldc`                            |\n| FreeBSD      | `pkg install ldc`                            |\n| Gentoo       | `layman -a ldc`                              |\n| Homebrew     | `brew install ldc`                           |\n| Nix/NixOS    | `nix-env -i ldc`                             |\n| OpenBSD      | `pkg_add ldc`                                |\n| Snap         | `snap install --classic --channel=edge ldc2` |\n| Ubuntu       | `apt install ldc`                            |\n| Void         | `xbps-install -S ldc`                        |\n\n### Building from source\n\nIn-depth material on building and installing LDC and the standard\nlibraries is available on the project wiki for\n[Linux, macOS, BSD, and Android](http://wiki.dlang.org/Building_LDC_from_source) and\n[Windows](http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC).\n\nIf you have a working C++/D build environment, CMake, and a recent LLVM\nversion (≥ 15) available, there should be no big surprises. Do not\nforget to make sure the Phobos submodule is up to date:\n\n    $ cd ldc\n    $ git submodule update --init\n\n(DMD, GDC and LDC are supported as host compilers. For bootstrapping\npurposes, we recommend GDC via its `gdmd` wrapper.)\n\nCross-compilation\n-----------------\n\nSimilar to other LLVM-based compilers, cross-compiling with LDC is simple.\nFull instructions and example invocations are provided on the dedicated\n[Wiki page](https://wiki.dlang.org/Cross-compiling_with_LDC).\n\n#### Targeting Android\n\nYou can find full instructions on cross-compiling or natively compiling\nfor Android [on the wiki](https://wiki.dlang.org/Build_D_for_Android).\n\nContact\n-------\n\nThe best way to get in touch with the developers is either via the\n[digitalmars.D.ldc forum/newsgroup/mailing list](https://forum.dlang.org)\nor our [Gitter chat](http://gitter.im/ldc-developers/main).\nThere is also the #ldc IRC channel on FreeNode.\n\nFor further documentation, contributor information, etc. please see\n[the D wiki](https://wiki.dlang.org/LDC).\n\nFeedback of any kind is very much appreciated!\n\n\n[0]: https://github.com/ldc-developers/ldc/releases/latest\n[3]: https://circleci.com/gh/ldc-developers/ldc/tree/master\n[4]: https://cirrus-ci.com/github/ldc-developers/ldc/master\n[7]: https://github.com/ldc-developers/ldc/actions?query=branch%3Amaster\n[8]: https://github.com/ldc-developers/ldc/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldc-developers%2Fldc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldc-developers%2Fldc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldc-developers%2Fldc/lists"}