Skip to content

Commit 0f08135

Browse files
committed
[Static SDK] Turn off -Werror for BoringSSL.
`-Werror` is a stupid option; it basically breaks the build whenever a newer compiler adds a new warning that triggers in your code. We don't need it here, so disable it.
1 parent 257d100 commit 0f08135

File tree

1 file changed

+12
-0
lines changed
  • swift-ci/sdks/static-linux/scripts

1 file changed

+12
-0
lines changed

swift-ci/sdks/static-linux/scripts/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ function run() {
239239
"$@"
240240
}
241241

242+
# -----------------------------------------------------------------------
243+
242244
header "Building CMake from source"
243245

244246
quiet_pushd ${source_dir}/swift-project/cmake
@@ -255,6 +257,8 @@ run export PATH="${build_dir}/cmake/install/bin:$PATH"
255257
quiet_popd
256258
run cmake --version
257259

260+
# -----------------------------------------------------------------------
261+
258262
header "Patching Musl"
259263

260264
echo -n "Patching Musl for locale support... "
@@ -270,6 +274,14 @@ fi
270274

271275
# -----------------------------------------------------------------------
272276

277+
header "Patching BoringSSL"
278+
279+
echo -n "Patching BoringSSL to disable -Werror... "
280+
sed -i.bak "s/-Werror //g" ${source_dir}/boringssl/CMakeLists.txt
281+
echo "done"
282+
283+
# -----------------------------------------------------------------------
284+
273285
header "Building clang for host"
274286

275287
mkdir -p ${build_dir}/host/clang ${build_dir}/clang

0 commit comments

Comments
 (0)