When build-dmd.sh calls make, it doesn't use the DC environment variable
to pick which compiler to use. This is a simple fix to honour the DC
environment variable.
exit 1
}
-make clean -fdmd-posix.mak || goerror
-make lib doc install -fdmd-posix.mak || goerror
-make clean -fdmd-posix.mak || goerror
+test -z "$DC" && DC=dmd
+make DC=$DC clean -fdmd-posix.mak || goerror
+make DC=$DC lib doc install -fdmd-posix.mak || goerror
+make DC=$DC clean -fdmd-posix.mak || goerror
chmod 644 ../import/*.di || goerror
export HOME=$OLDHOME