macOS
brew install ldclocal Homebrew formula metadata
sudo port install ldcMacPorts ports tree · lang/ldc/Portfile · ソース: api.github.com
brew
ldc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install ldclocal Homebrew formula metadata
sudo port install ldcMacPorts ports tree · lang/ldc/Portfile · ソース: api.github.com
sudo apk add ldcAlpine Linux edge package indexes · ldc · ソース: dl-cdn.alpinelinux.org
sudo dnf install ldcFedora Rawhide package metadata · ldc · ソース: dl.fedoraproject.org
nix profile install nixpkgs#ldcnixpkgs package indexes · pkgs/by-name/ld/ldc/package.nix · ソース: api.github.com
sudo pacman -S ldcArch Linux sync databases · ldc · ソース: geo.mirror.pkgbuild.com
sudo zypper install ldcopenSUSE Tumbleweed package metadata · ldc · ソース: download.opensuse.org
choco install ldcChocolatey community package catalog · ldc · ソース: community.chocolatey.org
scoop install main/ldcScoop official bucket manifest trees · bucket/ldc.json · ソース: api.github.com
概要
Portable D programming language compiler
履歴
LDC is the LLVM-backed compiler for the D programming language, pairing the D frontend and runtime libraries with LLVM code generation and optimization.
LDC emerged to give D programmers an LLVM-based alternative to the reference DMD compiler and GCC's GDC. The project README describes the compiler as using the official DMD frontend and LLVM as backend, with the ldc2 command as the main compiler driver.
The project evolved from early experimental D compiler work into a regular release train maintained by the ldc-developers organization. Its changelog shows the ongoing maintenance burden that matters for compilers: tracking D frontend/druntime/Phobos versions, LLVM versions, target ABI changes, platform support, and prebuilt binary packaging.
By the 1.x series, LDC had become a practical production compiler for D, not just a backend experiment. Its release notes repeatedly call out supported LLVM ranges, bundled LLVM versions for prebuilt packages, cross-compilation work, and platform fixes across Linux, macOS, Windows, Android, Alpine/musl, RISC-V, PowerPC, and other targets.
LDC's adoption is tied to D users who want LLVM optimization, broader target support, link-time optimization, and packaging-friendly prebuilt compilers. Package-manager coverage across Homebrew, Debian, Ubuntu, Fedora-family systems, Alpine, Arch, Nix, Scoop, Chocolatey, MacPorts, and openSUSE-family systems reflects that it is one of the standard ways to install a D compiler.
The project also matters to downstream packagers because its behavior depends on matching D frontend/runtime versions to LLVM support windows. The changelog's repeated packaging notes, glibc baseline changes, installer changes, and bundled-runtime details are signals of a mature compiler package rather than a small standalone CLI.
Users invoke ldc2 to compile D programs, use ldmd2 for DMD-compatible command-line behavior, and rely on helper tools such as ldc-build-runtime, ldc-build-plugin, ldc-profdata, ldc-profgen, and timetrace2txt for runtime building, plugin workflows, profiling, and build-time analysis.
The compiler is commonly selected when D code needs LLVM optimization, cross-compilation targets, sanitizer or profiling support, or integration with LLVM-adjacent workflows.
LDC is package-nerd significant because compiler packages sit at the junction of language ecosystems and system toolchains. It has to coordinate D language releases, LLVM ABI/API changes, C toolchains, platform linkers, bundled runtime libraries, and distro-specific packaging constraints.
For Homebrew and other package managers, LDC is also a dependency-shaped package: installing it is not just about one executable, but about shipping a coherent compiler, runtime, standard library, config files, and helper tools.
セキュリティ状態
generalized runtime or code generation signal.
リスク yellow · 信頼度 中 · runtime
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
ldc-build-plugin | cli | グローバル実行可能ファイル | |
ldc-build-runtime | cli | グローバル実行可能ファイル | |
ldc-profdata | cli | グローバル実行可能ファイル | |
ldc-profgen | cli | グローバル実行可能ファイル | |
ldc-prune-cache | cli | グローバル実行可能ファイル | |
ldc2 | cli | グローバル実行可能ファイル | |
ldmd2 | cli | グローバル実行可能ファイル | |
timetrace2txt | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/ldc-developers/ldc
インストールメタデータ
| パッケージキー | brew:ldc |
|---|---|
| バージョン | 1.42.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/ldc |
| ホームページ | https://wiki.dlang.org/LDC |
| リポジトリ | https://github.com/ldc-developers/ldc |
| 上流ドキュメント | https://github.com/ldc-developers/ldc#readme |
| ライセンス | BSD-3-Clause |
| ソースアーカイブ | https://github.com/ldc-developers/ldc/releases/download/v1.42.0/ldc-1.42.0-src.tar.gz |
| 依存関係 | llvm@21 |
| ビルド依存関係 | cmake, pkgconf |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ldc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
ldc 1:1.40.0-5
LLVM D Compiler
https://github.com/ldc-developers/ldc
sudo apt install ldclibphobos2-ldc-shared-dev 1:1.40.0-5
LLVM D Compiler - Standard and runtime libraries, imports
https://github.com/ldc-developers/ldc
sudo apt install libphobos2-ldc-shared-devlibphobos2-ldc-shared110 1:1.40.0-5
LLVM D Compiler - Standard and runtime libraries
https://github.com/ldc-developers/ldc
sudo apt install libphobos2-ldc-shared110ldc
nix profile install nixpkgs#ldcldc 1:1.36.0-2ubuntu2
LLVM D Compiler
https://github.com/ldc-developers/ldc
sudo apt install ldclibphobos2-ldc-shared-dev 1:1.36.0-2ubuntu2
LLVM D Compiler - Standard and runtime libraries, imports
https://github.com/ldc-developers/ldc
sudo apt install libphobos2-ldc-shared-devlibphobos2-ldc-shared106 1:1.36.0-2ubuntu2
LLVM D Compiler - Standard and runtime libraries
https://github.com/ldc-developers/ldc
sudo apt install libphobos2-ldc-shared106ldc 1.42.0-r0
The LLVM-based D Compiler
https://github.com/ldc-developers/ldc
sudo apk add ldcldc-bash-completion 1.42.0-r0
Bash completions for ldc
https://github.com/ldc-developers/ldc
sudo apk add ldc-bash-completionldc-dbg 1.42.0-r0
The LLVM-based D Compiler (debug symbols)
https://github.com/ldc-developers/ldc
sudo apk add ldc-dbgldc-runtime 1.42.0-r0
Dynamic runtime library for D code compiled with ldc-1.42.0
https://github.com/ldc-developers/ldc
sudo apk add ldc-runtimeldc-static 1.42.0-r0
The LLVM-based D Compiler (static library)
https://github.com/ldc-developers/ldc
sudo apk add ldc-staticldc 1.42.0-2.fc45
LLVM D Compiler
https://github.com/ldc-developers/ldc
sudo dnf install ldcldc-libs 1.42.0-2.fc45
LLVM D Compiler libraries
https://github.com/ldc-developers/ldc
sudo dnf install ldc-libsldc 3:1.42.0-1
A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2
https://github.com/ldc-developers/ldc
sudo pacman -S ldcldc 1.40.1-1.3
The LLVM D Compiler
sudo zypper install ldcソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.