File tree 2 files changed +32
-1
lines changed
2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Each of the following options may be specified when executing CMake by prefixing
41
41
``` bash
42
42
apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
43
43
cd libkipr
44
- cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=$( pwd) /toolchain/aarch64 -linux-gnu .cmake .
44
+ cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=$( pwd) /toolchain/arm -linux-gnueabihf .cmake .
45
45
```
46
46
47
47
# Cross-compiling to JavaScript/WASM (e.g., Simulator)
Original file line number Diff line number Diff line change
1
+ # set(CMAKE_SYSROOT ${AARCH64_LINUX_GNU_SYSROOT})
2
+ set (ARCH aarch64)
3
+
4
+ set (CMAKE_SYSTEM_NAME Linux)
5
+ set (CMAKE_SYSTEM_PROCESSOR aarch64)
6
+
7
+ set (triple aarch64-linux-gnu)
8
+
9
+ set_property (GLOBAL PROPERTY host aarch64-linux)
10
+ set_property (GLOBAL PROPERTY triple ${triple} )
11
+ set_property (GLOBAL PROPERTY arch aarch64)
12
+ set_property (GLOBAL PROPERTY target_os linux)
13
+ set_property (GLOBAL PROPERTY cross_prefix ${triple} -)
14
+
15
+ set (CMAKE_C_COMPILER_TARGET ${triple} )
16
+
17
+ set (CMAKE_C_COMPILER ${triple} -gcc)
18
+ set (CMAKE_C_COMPILER_TARGET ${triple} )
19
+ set (CMAKE_CXX_COMPILER ${triple} -g++)
20
+ set (CMAKE_CXX_COMPILER_TARGET ${triple} )
21
+ set (CMAKE_ASM_COMPILER ${triple} -as)
22
+ set (CMAKE_ASM_COMPILER_TARGET ${triple} )
23
+ set (CMAKE_LINKER ${triple} -ld)
24
+ set (CMAKE_ADDR2LINE ${triple} -addr2line)
25
+ set (CMAKE_AR ${triple} -ar)
26
+ set (CMAKE_NM ${triple} -nm)
27
+ set (CMAKE_OBJCOPY ${triple} -objcopy)
28
+ set (CMAKE_OBJDUMP ${triple} -objdump)
29
+ set (CMAKE_RANLIB ${triple} -ranlib)
30
+ set (CMAKE_READELF ${triple} -readelf)
31
+ set (CMAKE_STRIP ${triple} -strip)
You can’t perform that action at this time.
0 commit comments