From ed18ead1ff9f20b35fb0799871013bcaed73e465 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 21 Jul 2021 20:49:35 -0400 Subject: [PATCH] [client] ci: fix clang build Our code to generate object files from shaders with the linker seems to depend on GNU ld. More accurately, it works with lld, but we must specify the correct object format via -m, which is very difficult to detect in a satisfactory manner. Therefore we simply force use of GNU ld. --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5291074..7f7d607a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,11 @@ jobs: run: | mkdir client/build cd client/build - cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_SDL=ON .. + cmake \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DCMAKE_LINKER:FILEPATH=/usr/bin/ld \ + -DENABLE_SDL=ON \ + .. - name: Build client run: | cd client/build