2020-11-12 10:51:35 +05:30
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
2021-09-13 00:57:29 +05:30
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
2020-11-12 10:51:35 +05:30
|
|
|
# ccache configurations
|
|
|
|
export CCACHE_CPP2=yes
|
|
|
|
export CCACHE_SLOPPINESS=time_macros
|
|
|
|
|
|
|
|
export CC="ccache clang"
|
|
|
|
export CXX="ccache clang++"
|
2022-09-21 22:06:12 +05:30
|
|
|
export OBJC="clang"
|
|
|
|
export ASM="clang"
|
2020-11-12 10:51:35 +05:30
|
|
|
|
|
|
|
ccache -s
|
|
|
|
|
|
|
|
mkdir build && cd build
|
2023-01-15 21:45:42 +05:30
|
|
|
# TODO: LibreSSL ASM disabled due to platform detection issues in build.
|
2021-09-13 00:57:29 +05:30
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
2023-03-01 23:28:09 +05:30
|
|
|
-DCMAKE_OSX_ARCHITECTURES="$TARGET_ARCH" \
|
2021-09-13 00:57:29 +05:30
|
|
|
-DENABLE_QT_TRANSLATION=ON \
|
|
|
|
-DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
|
|
|
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
|
|
-DUSE_DISCORD_PRESENCE=ON \
|
2023-01-06 04:46:40 +05:30
|
|
|
-DENABLE_ASM=OFF \
|
2021-09-13 00:57:29 +05:30
|
|
|
-GNinja
|
2020-11-12 10:51:35 +05:30
|
|
|
ninja
|
|
|
|
|
|
|
|
ccache -s
|
|
|
|
|
2023-03-01 23:28:09 +05:30
|
|
|
CURRENT_ARCH=`arch`
|
|
|
|
if [ "$TARGET_ARCH" = "$CURRENT_ARCH" ]; then
|
|
|
|
ctest -VV -C Release
|
|
|
|
fi
|