Skip to content

Commit

Permalink
Attempt to use distcc
Browse files Browse the repository at this point in the history
  • Loading branch information
SoniEx2 committed Feb 1, 2024
1 parent 84a54eb commit 743a722
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ jobs:
fail-fast: false
matrix:
arch: [s390x]
services: # still faster on debian...
distcc:
image: debian:latest
options: --health-cmd distccmon-text --health-interval 5s --health-start-period 5m debian:latest bash -c "apt-get update && apt-get install -y g++-s390x-linux-gnu distcc && distccd --daemon --no-detach"
ports:
- 3632:3632
steps:
- uses: actions/setup-python@v1
with:
Expand All @@ -209,6 +215,12 @@ jobs:
run: sudo apt-get install ninja-build
- name: install the toolchain
run: sudo apt-get install g++-${{matrix.arch}}-linux-gnu
- name: install distcc
run: sudo apt-get install distcc
- name: mkdir distcc symlinks
run: sudo mkdir -p /opt/bin/distcc_symlinks
- name: distcc symlink
run: sudo ln -s /usr/bin/distcc /opt/bin/distcc_symlinks/${{matrix.arch}}-linux-gnu-gcc # only CC is needed
- name: mkdir
run: mkdir -p out
- name: cmake
Expand Down
2 changes: 1 addition & 1 deletion scripts/TC-s390x.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(CMAKE_SYSTEM_NAME Linux)

set(CMAKE_C_COMPILER s390x-linux-gnu-gcc)
set(CMAKE_C_COMPILER /opt/bin/distcc_symlinks/s390x-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER s390x-linux-gnu-g++)

set(CMAKE_FIND_ROOT_PATH /usr/s390x-linux-gnu)
Expand Down

0 comments on commit 743a722

Please sign in to comment.