linux-packaging-mono/debian/postinst-monoaot
Jo Shields aa684dfb4f Try to use LLVM for AOT
(cherry picked from commit c4e565c69dce2d6815a3c91f54c6e5ab492fb1e9)


Former-commit-id: fa8de84b5f1d23246161f4c12883dc2526e3b885
2018-06-04 13:05:22 -04:00

8 lines
350 B
Plaintext

if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`
echo "Mono precompiling #FILE# for ${MONOARCH}..."
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
/usr/bin/mono --aot=try-llvm,outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all #FILE# > /dev/null 2>&1 || true
fi