File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 69
69
steps :
70
70
- uses : ilammy/setup-nasm@v1
71
71
- name : Install gcc-multilib
72
- run : sudo apt install gcc-multilib g++-multilib
72
+ run : sudo apt install gcc-multilib g++-multilib gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
73
73
74
74
- uses : actions/checkout@v4
75
75
Original file line number Diff line number Diff line change @@ -3,6 +3,18 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
3
3
# This project builds the test binaries for the debugger unit test. It does not run the test.
4
4
project (debugger-test-binaries C CXX )
5
5
6
+ if (CROSS_COMPILE_LINUX )
7
+ message ("Cross compiling for Linux aarch64" )
8
+ SET (CMAKE_SYSTEM_NAME Linux )
9
+ SET (CMAKE_SYSTEM_VERSION 1 )
10
+ SET (CMAKE_C_COMPILER aarch64-linux-gnu-gcc )
11
+ SET (CMAKE_CXX_COMPILER aarch64-linux-gnu-g++ )
12
+ SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
13
+ SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
14
+ SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
15
+ SET (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
16
+ endif ()
17
+
6
18
if (ARCH STREQUAL "x86_64" )
7
19
add_definitions (-DARCH_IS_X64 )
8
20
elseif (ARCH STREQUAL "x86" )
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ def linux_build():
48
48
if not run_cmd (build_cmd ):
49
49
return False
50
50
51
+ build_cmd = f"cmake -B build/arm64 -DARCH=arm64 -DCROSS_COMPILE_LINUX=ON . && cd build/arm64 && make"
52
+ if not run_cmd (build_cmd ):
53
+ return False
54
+
51
55
create_archive ()
52
56
return True
53
57
You can’t perform that action at this time.
0 commit comments