File: README.md

package info (click to toggle)
simdutf 7.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,244 kB
  • sloc: cpp: 60,074; ansic: 14,226; python: 3,364; sh: 321; makefile: 12
file content (32 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# LoongArch64
You can now build and run the LoongArch64 code as needed:
GCC >= 14.1
Binutils >= 2.41

Note that the compiler may be named `loongarch64-linux-gnu-g++`, without the `unknown` part.
Please adjust to your system.

```
$ mkdir build && cd build
$ cmake -DCMAKE_CXX_COMPILER="loongarch64-unknown-linux-gnu-g++" \
  -DCMAKE_C_COMPILER="loongarch64-unknown-linux-gnu-gcc" \
  -DCMAKE_CROSSCOMPILING=True \
  -DCMAKE_CXX_FLAGS="-mlsx -mlasx " \
  -DCMAKE_BUILD_TYPE=Release ../
$ make
```
or
```
$ mkdir build && cd build
$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-dev/loongarch64.cmake ../
$ make
```

Running tests with qemu
```
$ export QEMU_LD_PREFIX="/path_to_sysroot/"
$ export QEMU_CPU="la464"
$ make test
or
$ qemu-loongarch64 tests/base64_tests
```