Skip to content

lindt/docker-sdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker pulls Docker Build Latest Tag

docker-sdc

Docker Image for Stupid D Compiler SDC.

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.

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.

Other Compilers

Allows to use all major D Compilers without installation.

Compiler Latest Tag
DMD Latest Tag
LDC Latest Tag
GDC Latest Tag
SDC Latest Tag

Usage

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