ldcup

Download and manage D compiler [ldc2].


Keywords
application, desktop, development, d, dlang, ldc2, ldc2-toolchain, opendlang, version-manager
License
Apache-2.0
Install
dub fetch ldcup --version 1.0.0

Documentation

ldcup

Download and manage LDC2 compiler. [D and OpenD]

Note

For DMD, see dlang website - Downloads.

Inspired by rustup and zigup.

Install

$ curl -sSf https://raw.githubusercontent.com/kassane/ldcup/main/scripts/install.sh | sh

or

> iwr -useb https://raw.githubusercontent.com/kassane/ldcup/main/scripts/install.ps1 | iex

or download precompiled binaries and extract it.

  • Add ldcup to your $PATH.

Usage

  • Run ldcup commands.
$ 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} # optional: -v
$ 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

$ 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 -- [compiler-flags] 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