From d507cf202a2445214ed3bcbab60e007867bdcbe4 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 22 Nov 2008 14:31:36 -0200 Subject: [PATCH] Make build-dmd.sh use DC environment variable 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/build-dmd.sh diff --git a/src/build-dmd.sh b/src/build-dmd.sh old mode 100644 new mode 100755 index d6be599..8f3b163 --- a/src/build-dmd.sh +++ b/src/build-dmd.sh @@ -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 -- 2.43.0