Download and manage ldc2 compiler.
Note
For DMD, see dlang website - Downloads.
$ ldcup install # default latest version
# or
$ ldcup install ldc2-master # latest-CI version
# or
$ ldcup install ldc2-${version} # optional: -v
$ ldcup list # list installed compilers in default path directory
$ ldcup uninstall ldc2-${version}
## 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
$ ldcup
Usage: ldcup [command] [options]
Commands:
install [compiler] Install a D compiler (default: ldc2-latest)
uninstall [compiler] Uninstall a specific compiler
list List installed compilers
--install-dir=DIR Specify the installation directory
--verbose, -v Enable verbose output
--remote List all available compiler releases
--help, -h Show this help message