]> git.llucax.com Git - software/druntime.git/commitdiff
Make build-dmd.sh use DC environment variable
authorLeandro Lucarella <llucax@gmail.com>
Sat, 22 Nov 2008 16:31:36 +0000 (14:31 -0200)
committerLeandro Lucarella <llucax@gmail.com>
Wed, 26 Nov 2008 02:03:00 +0000 (02:03 +0000)
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.

src/build-dmd.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d6be599..8f3b163
@@ -11,9 +11,10 @@ goerror(){
     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