Skip to content

Commit

Permalink
Add CMake toolchain file for using the aarch64-w64-mingw32 toolchain (#8
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Blackhex authored and eukarpov committed Dec 4, 2023
1 parent 1b6f895 commit 0c0d45d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/cmake/aarch64-w64-mingw32.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR ARM64)
set(CMAKE_C_COMPILER aarch64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER aarch64-w64-mingw32-g++)
set(CMAKE_RC_COMPILER aarch64-w64-mingw32-windres)
set(CMAKE_RANLIB aarch64-w64-mingw32-ranlib)
set(CMAKE_AR aarch64-w64-mingw32-ar)
1 change: 1 addition & 0 deletions .github/scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SOURCE_PATH=${SOURCE_PATH:-$PWD/code}
BUILD_PATH=${BUILD_PATH:-$PWD/build-$TARGET}
BUILD_MAKE_OPTIONS=${BUILD_MAKE_OPTIONS:-V=1 -j$(nproc)}
TOOLCHAIN_PATH=${TOOLCHAIN_PATH:-~/cross}
TOOLCHAIN_FILE=${TOOLCHAIN_FILE:-$PWD/.github/cmake/$TARGET.cmake}
TOOLCHAIN_PACKAGE_NAME=${TOOLCHAIN_PACKAGE_NAME:-$TARGET-$CRT-toolchain.tar.gz}

RUN_CONFIG=${RUN_CONFIG:-1}
Expand Down

0 comments on commit 0c0d45d

Please sign in to comment.