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.
This commit is contained in:
yhirose committed 2026-10-22 17:40:53 -04:00
1 parent 97a972fcef
commit 7d28b64a03
1 file changed
+4
+4
View File
@@ -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 \