https://github.com/lindt/docker-ldc
Docker Image for LDC
https://github.com/lindt/docker-ldc
compiler dlang docker ldc
Last synced: 11 months ago
JSON representation
Docker Image for LDC
- Host: GitHub
- URL: https://github.com/lindt/docker-ldc
- Owner: lindt
- License: mit
- Created: 2016-10-30T03:26:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-17T09:13:40.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T17:46:16.254Z (about 1 year ago)
- Topics: compiler, dlang, docker, ldc
- Language: Shell
- Homepage: https://hub.docker.com/r/dlanguage/ldc/
- Size: 36.1 KB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/dlanguage/ldc/)
[](https://hub.docker.com/r/dlanguage/ldc/)
[](https://hub.docker.com/r/dlanguage/ldc/)
# docker-ldc
Docker Image for LLVM-based [D](http://dlang.org) Compiler.
## Motivation
Installation of a compiler sometimes is cumbersome. This Docker image should take this pain and allow you to easily switch between Versions of the same compiler and even different compilers.
In case a native installation is required, `curl -fsS https://dlang.org/install.sh | bash -s ldc` could be used.
## Other Compilers
Allows to use all major D Compilers without installation.
| Compiler | Latest Tag |
| -------- | ---------- |
| DMD | [](https://hub.docker.com/r/dlanguage/dmd/) |
| LDC | [](https://hub.docker.com/r/dlanguage/ldc/) |
| GDC | [](https://hub.docker.com/r/dlanguage/gdc/) |
## Usage
Place a `test.d` in your current directory.
Then execute
```
docker run --rm -ti -v $(pwd):/src dlanguage/ldc ldc2 test.d
```