Mercurial > projects > ldc
annotate lphobos/llvmdc-build @ 639:8aebdf56c455
Move check for access of context for nested class from backend into frontend.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 02 Oct 2008 23:12:19 +0200 |
parents | 526385b6d1fd |
children | 6aaa3d3c1183 |
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 |