瀏覽代碼

Build BoringSSL with clang in the Linux CI job

GCC 15 on ubuntu-latest (26.04) reports a false -Wstringop-overflow in
BoringSSL's Keccak code, and BoringSSL's -Werror makes the build fail.
yhirose 5 天之前
父節點
當前提交
7d28b64a03
共有 1 個文件被更改,包括 4 次插入 和 0 次删除
  1. 4 0
      .github/workflows/test.yaml

+ 4 - 0
.github/workflows/test.yaml

@@ -209,7 +209,11 @@ jobs:
           git clone https://boringssl.googlesource.com/boringssl boringssl
           cd boringssl
           git checkout "${{ steps.boringssl-rev.outputs.sha }}"
+          # GCC 15 reports a false -Wstringop-overflow in BoringSSL's Keccak
+          # code, which its -Werror makes fatal. Clang is its primary compiler.
           cmake -S . -B build \
+            -DCMAKE_C_COMPILER=clang \
+            -DCMAKE_CXX_COMPILER=clang++ \
             -DCMAKE_BUILD_TYPE=Release \
             -DBUILD_SHARED_LIBS=OFF \
             -DCMAKE_POSITION_INDEPENDENT_CODE=ON \