travis a64: unicorn

This commit is contained in:
SachinVin 2019-07-16 21:38:17 +05:30 committed by xperia64
parent 20ab2e2e80
commit 89bb32bed5
2 changed files with 8 additions and 3 deletions

View File

@ -4,10 +4,11 @@ set -e
set -x set -x
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
export UNICORNDIR=$(pwd)/dynarmic/externals/unicorn
cd dynarmic cd dynarmic
mkdir build && cd build mkdir build && cd build
cmake .. -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc-8 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++-8 -G Ninja cmake .. -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release -DDYNARMIC_TESTS_USE_UNICORN=1 -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc-8 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++-8 -G Ninja
ninja ninja
qemu-aarch64 -L /usr/aarch64-linux-gnu ./tests/dynarmic_tests -d yes qemu-aarch64 -L /usr/aarch64-linux-gnu ./tests/dynarmic_tests -d yes

View File

@ -4,9 +4,13 @@ set -e
set -x set -x
apt-get update apt-get update
apt-get install -y git cmake gcc ninja-build g++-8-aarch64-linux-gnu qemu-user apt-get install -y git cmake gcc python ninja-build g++-8-aarch64-linux-gnu qemu-user
# TODO: This isn't ideal. # TODO: This isn't ideal.
cd dynarmic/externals cd dynarmic/externals
git clone https://github.com/MerryMage/ext-boost git clone https://github.com/MerryMage/ext-boost
cd .. git clone https://github.com/unicorn-engine/unicorn.git
cd unicorn
UNICORN_ARCHS="arm aarch64" CC=aarch64-linux-gnu-gcc-8 ./make.sh
cd ../..