File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 22
33source ` dirname ${BASH_SOURCE[0]} ` /../../config.sh
44
5+ PACKAGE_REPOSITORY=$1
6+
57DIR=" ` dirname ${BASH_SOURCE[0]} ` /../.."
68DIR=` realpath $DIR `
79CCACHE_DIR=$DIR /ccache
@@ -32,16 +34,17 @@ pushd /
3234 echo " ::endgroup::"
3335popd
3436
35- pacman -S --noconfirm ccache
37+ if [[ " $PACKAGE_REPOSITORY " == * MINGW* ]]; then
38+ pacman -S --noconfirm mingw-w64-clang-aarch64-ccache
39+ else
40+ pacman -S --noconfirm ccache
41+ fi
3642
3743pushd /usr/lib/ccache/bin
3844 echo " ::group::Add aarch64 toolchain to ccache"
3945 export MSYS=winsymlinks
4046 ln -sf /usr/bin/ccache aarch64-w64-mingw32-c++
4147 ln -sf /usr/bin/ccache aarch64-w64-mingw32-g++
4248 ln -sf /usr/bin/ccache aarch64-w64-mingw32-gcc
43- if [[ " $FLAVOR " = " CROSS" ]]; then
44- ln -sf /usr/bin/true makeinfo
45- fi
4649 echo " ::endgroup::"
4750popd
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ pacman -R --noconfirm mingw-w64-cross-mingw64-winpthreads || true
66rm -rf /opt/aarch64-w64-mingw32/include/pthread_signal.h
77rm -rf /opt/aarch64-w64-mingw32/include/pthread_unistd.h
88rm -rf /opt/aarch64-w64-mingw32/include/pthread_time.h
9+ rm -rf /opt/aarch64-w64-mingw32/include/pthread_compat.h
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ pacman -S --noconfirm mingw-w64-cross-mingw64-winpthreads
66cp /opt/x86_64-w64-mingw32/include/pthread_signal.h /opt/aarch64-w64-mingw32/include/
77cp /opt/x86_64-w64-mingw32/include/pthread_unistd.h /opt/aarch64-w64-mingw32/include/
88cp /opt/x86_64-w64-mingw32/include/pthread_time.h /opt/aarch64-w64-mingw32/include/
9+ cp /opt/x86_64-w64-mingw32/include/pthread_compat.h /opt/aarch64-w64-mingw32/include/
You can’t perform that action at this time.
0 commit comments