annotate lphobos/llvmdc-build @ 650:aa6a0b7968f7

Added test case for bug #100 Removed dubious check for not emitting static private global in other modules without access. This should be handled properly somewhere else, it's causing unresolved global errors for stuff that should work (in MiniD)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 05 Oct 2008 17:28:15 +0200
parents 526385b6d1fd
children 6aaa3d3c1183
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
475
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
1 #!/bin/sh
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
2 export PATH=$PATH:/opt/llvm/bin
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
3 export FILE=$1; shift
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
4 export LLVMDC_PATH=~/llvmdc
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
5 PARAM=$(for p_file in $($LLVMDC_PATH/bin/llvmdc $FILE -I~/llvmdc/lphobos -c -v -of/dev/null |grep import \
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
6 |sed -e "s/import *//" -e "s/\t.*//" \
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
7 |sed -e "s/\./\//g" -e "s/$/\.d/"); do if [ -f $p_file ]; then echo $p_file; fi; done)
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
8 echo llvmdc $FILE $@ $PARAM
423e610e20d7 Added bash style rebuild to the lphobos dir
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
diff changeset
9 $LLVMDC_PATH/bin/llvmdc $FILE $@ $PARAM