Docker Image for Stupid D Compiler SDC.
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.
The SDC is still hasn't reached version 1.0. It could just compile basic stuff. To see what it's able to compile, check out it's tests.
Allows to use all major D Compilers without installation.
Compiler | Latest Tag |
---|---|
DMD | |
LDC | |
GDC | |
SDC |
Place a test.d
in your current directory.
Then execute
docker run --rm -ti \
-e USER -e HOME -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_GROUP_ID=`id -g $USER` \
-w /src \
-v $(pwd):/src \
dlanguage/sdc sdc test.d