Skip to content

Commit

Permalink
gh-actions: add loongarch64 clang-18 test
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Sep 20, 2024
1 parent 891ad5b commit 6b0476f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@ jobs:
# arch_gnu: mips64el
# arch_gnu_abi: abi64
# distro: ubuntu-24.04
- version: 18
cross: loongarch64
arch_deb: loong64
arch_gnu: loongarch64
distro: ubuntu-24.04
runs-on: ${{ matrix.distro }}
steps:
- uses: actions/checkout@v4
Expand Down
20 changes: 20 additions & 0 deletions docker/cross-files/loongarch64-clang-18-ccache.cross
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[binaries]
c = ['ccache', 'clang-18']
cpp = ['ccache', 'clang++-18']
ar = 'llvm-ar-18'
strip = 'llvm-strip-18'
objcopy = 'llvm-objcopy-18'
ld = 'llvm-ld-18'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[properties]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror']
cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror']
c_link_args = ['--target=loongarch64-linux-gnu']
cpp_link_args = ['--target=loongarch64-linux-gnu']

[host_machine]
system = 'linux'
cpu_family = 'loongarch64'
cpu = 'la464'
endian = 'little'

0 comments on commit 6b0476f

Please sign in to comment.