2014-08-13 12:08:26 +01:00
|
|
|
if [ "$1" = "configure" ]
|
|
|
|
then
|
2015-02-07 13:54:03 -05:00
|
|
|
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`
|
2018-04-24 16:40:34 -04:00
|
|
|
echo "Mono precompiling #FILE# for ${MONOARCH}..."
|
2015-01-13 16:18:26 +00:00
|
|
|
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
|
2018-05-02 10:43:34 -04:00
|
|
|
/usr/bin/mono --aot=try-llvm,outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all #FILE# > /dev/null 2>&1 || true
|
2014-08-13 12:08:26 +01:00
|
|
|
fi
|