Try to use LLVM for AOT

(cherry picked from commit c4e565c69dce2d6815a3c91f54c6e5ab492fb1e9)


Former-commit-id: fa8de84b5f1d23246161f4c12883dc2526e3b885
This commit is contained in:
Jo Shields 2018-05-02 10:43:34 -04:00
parent ef21676809
commit aa684dfb4f

View File

@ -3,5 +3,5 @@ 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=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all #FILE# > /dev/null 2>&1 || true
/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