https://github.com/kassane/ldcup
Download and manage L(D)C2 compiler.
https://github.com/kassane/ldcup
d dlang ldc2 ldc2-toolchain opendlang version-manager
Last synced: 3 months ago
JSON representation
Download and manage L(D)C2 compiler.
- Host: GitHub
- URL: https://github.com/kassane/ldcup
- Owner: kassane
- License: apache-2.0
- Created: 2024-12-18T16:08:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-03-09T16:26:36.000Z (3 months ago)
- Last Synced: 2025-03-09T16:28:57.808Z (3 months ago)
- Topics: d, dlang, ldc2, ldc2-toolchain, opendlang, version-manager
- Language: D
- Homepage: http://ldcup.dub.pm/
- Size: 54.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-version-managers - ldcup - A small tool to install and manage LDC2 (LLVM backend) compiler. (Version Managers / D)
README
ldcup
=====[-f8240e?logo=d&logoColor=f8240e&label=runtime)](https://dlang.org/download.html)

[](https://github.com/kassane/ldcup/actions/workflows/ci.yml)
Download and manage LDC2 compiler. [D and OpenD]
> [!NOTE]
> For DMD, see [dlang website - Downloads](https://dlang.org/download).Inspired by [rustup](https://github.com/rust-lang/rustup.rs) and [zigup](https://github.com/marler8997/zigup).
### Install
```bash
curl -sSf https://raw.githubusercontent.com/kassane/ldcup/main/scripts/install.sh | sh
```
or
```powershell
iwr -useb https://raw.githubusercontent.com/kassane/ldcup/main/scripts/install.ps1 | iex
```
or download [precompiled binaries](https://github.com/kassane/ldcup/releases) and extract it.- Add `ldcup` to your `$PATH`.
### Usage
- Run `ldcup` commands.
```bash
$ ldcup install # default latest version
# or
$ ldcup install opend-latest # opend-ldc2 compiler latest-CI version
# or
$ ldcup install ldc2-beta # latest beta version
# or
$ ldcup install ldc2-[master or nightly] # latest-CI version
# or
$ ldcup install ldc2-${version}
# or
$ ldcup install redub # redub build-system (dub fork) - need ldc2 installed
$ ldcup list # list installed compilers in default path directory
$ ldcup list --remote # list all available compiler releases
$ ldcup uninstall ldc2-${version}
$ ldcup run -- --version # run ldc2 with --version flag## Custom path directory
$ ldcup list --install-dir=custom-path # list installed compilers in custom path directory
# or set DC_PATH environment variable
$ DC_PATH=customPath ldcup list # list installed compilers in custom path directory
```### Helper
```console
$ ldcup
Usage: ldcup [command] [options]
Commands:
install [compiler] Install a ldc2 compiler (default: ldc2-latest)
uninstall [compiler] Uninstall a specific compiler
list List installed compilers
run -- Run a ldc2 compiler with specified flags
--install-dir=DIR Specify the installation directory
--platform=PLATFORM Specify the platform (e.g., linux-x86_64)
--verbose, -v Enable verbose output
--remote List all available compiler releases
--help, -h Show this help message
```### License
[Apache-2.0](LICENSE)