Automic VaultAutomic Vault

brew

ldc を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop でインストール

ldc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install ldc

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install ldc

MacPorts ports tree · lang/ldc/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add ldc

Alpine Linux edge package indexes · ldc · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install ldc

Debian stable package indexes · ldc · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install ldc

Fedora Rawhide package metadata · ldc · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#ldc

nixpkgs package indexes · pkgs/by-name/ld/ldc/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S ldc

Arch Linux sync databases · ldc · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install ldc

openSUSE Tumbleweed package metadata · ldc · ソース: download.opensuse.org

概要

パッケージ概要

Portable D programming language compiler

コマンドとエイリアス

  • ldc-build-plugin
  • ldc-build-runtime
  • ldc-profdata
  • ldc-profgen
  • ldc-prune-cache
  • ldc2
  • ldmd2
  • timetrace2txt

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2000s: LDC begins as an LLVM-based compiler path for the D language.
  • 2016: The 1.0 release line establishes LDC as a stable D compiler package.
  • 2023: LDC 1.33.0 documents semantic-analysis plugin support and adds ldc-build-plugin.
  • 2024: LDC 1.38.0 documents LLVM 18 support and Android TLS/runtime changes.
  • 2025: LDC 1.41.0 documents LLVM 20 support and Ubuntu 22.04-based Linux packages.
  • 2026-03-01: LDC 1.42.0 documents LLVM 21 support and D frontend/druntime/Phobos version 2.112.1+.

Related projects

  • Related projects include DMD, the reference D compiler whose frontend LDC tracks; GDC, the GCC-based D compiler; LLVM and Clang; and the D runtime and Phobos standard library.

セキュリティ状態

リスクレベル: yellow

generalized runtime or code generation signal.

リスク分類器

リスク yellow · 信頼度 中 · runtime

理由

  • generalized runtime or code generation signal

信号

  • text:runtime,programming language

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 2 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
ldc-build-plugincliグローバル実行可能ファイル
ldc-build-runtimecliグローバル実行可能ファイル
ldc-profdatacliグローバル実行可能ファイル
ldc-profgencliグローバル実行可能ファイル
ldc-prune-cachecliグローバル実行可能ファイル
ldc2cliグローバル実行可能ファイル
ldmd2cliグローバル実行可能ファイル
timetrace2txtcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版1.42.0
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameldc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

ldc 1:1.40.0-5

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: devel
  • Architecture: amd64
  • 6 依存関係
  • 2 提供
  • 2 任意依存関係
  • normalized package name match
  • 一致条件: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ldc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-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-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 5 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-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-shared110
  • Section: libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 依存関係
  • normalized package name match
  • 一致条件: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared110 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ldc

nix profile install nixpkgs#ldc
  • normalized package name match
  • 一致条件: Ldc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ld/ldc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ldc 1:1.36.0-2ubuntu2

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: universe/devel
  • Architecture: amd64
  • 6 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ldc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-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-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 4 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-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-shared106
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 依存関係
  • normalized package name match
  • 一致条件: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared106 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ldc 1.42.0-r0

The LLVM-based D Compiler

https://github.com/ldc-developers/ldc

sudo apk add ldc
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-bash-completion 1.42.0-r0

Bash completions for ldc

https://github.com/ldc-developers/ldc

sudo apk add ldc-bash-completion
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • 一致条件: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-dbg 1.42.0-r0

The LLVM-based D Compiler (debug symbols)

https://github.com/ldc-developers/ldc

sudo apk add ldc-dbg
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依存関係
  • normalized package name match
  • 一致条件: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-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-runtime
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-runtime from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-static 1.42.0-r0

The LLVM-based D Compiler (static library)

https://github.com/ldc-developers/ldc

sudo apk add ldc-static
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • 一致条件: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ldc 1.42.0-2.fc45

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo dnf install ldc
  • License: BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ldc
  • 14 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ldc-libs 1.42.0-2.fc45

LLVM D Compiler libraries

https://github.com/ldc-developers/ldc

sudo dnf install ldc-libs
  • License: BSL-1.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ldc
  • 6 依存関係
  • 5 提供
  • normalized package name match
  • 一致条件: Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ldc 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 ldc
  • License: BSD-3-Clause AND BSL-1.0 AND Apache-2.0 WITH LLVM-exception
  • Architecture: x86_64
  • 5 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ldc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ldc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ldc 1.40.1-1.3

The LLVM D Compiler

https://wiki.dlang.org/LDC

sudo zypper install ldc
  • License: Artistic-1.0 AND BSD-3-Clause
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: ldc
  • 8 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Ldc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ldc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment