2 # This script expects to be invoked from the base fio directory.
5 SCRIPT_DIR=$(dirname "$0")
6 # shellcheck disable=SC1091
7 . "${SCRIPT_DIR}/common.sh"
10 local extra_cflags="-Werror"
11 local configure_flags=()
14 case "${CI_TARGET_BUILD}/${CI_TARGET_OS}" in
17 if [ -z "${CI_TARGET_ARCH}" ]; then
18 echo "Error: CI_TARGET_ARCH has not been set"
21 NDK=$PWD/android-ndk-r24/toolchains/llvm/prebuilt/linux-x86_64/bin
22 export PATH="${NDK}:${PATH}"
23 export LIBS="-landroid"
24 CC=${NDK}/${CI_TARGET_ARCH}-clang
25 if [ ! -e "${CC}" ]; then
26 echo "Error: could not find ${CC}"
31 case "${CI_TARGET_ARCH}" in
33 extra_cflags="${extra_cflags} -m32"
46 configure_flags+=(--extra-cflags="${extra_cflags}")
48 ./configure "${configure_flags[@]}"