Mercurial > projects > ldc
view druntime/src/build-dmd.sh @ 1483:defafbabbe32
Add a pass to strip the bodies of `available_externally` functions so string
literals and `TypeInfo`s only referenced by them can be deleted by `-globaldce`.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 07 Jun 2009 16:00:13 +0200 |
parents | e0b2d67cfe7c |
children |
line wrap: on
line source
#!/usr/bin/env bash OLDHOME=$HOME export HOME=`pwd` goerror(){ export HOME=$OLDHOME echo "=" echo "= *** Error ***" echo "=" exit 1 } make clean -fdmd-posix.mak || goerror make -fdmd-posix.mak || goerror chmod 644 ../import/core/*.di || goerror chmod 644 ../import/core/sync/*.di || goerror export HOME=$OLDHOME