Skip to content

Commit 9870f66

Browse files
committed
macos: suppress some very chatty warnings
We were seeing thousands of warnings in the macOS SDK when building on LLVM 10. Probably due to new warnings in that toolchain. Let's suppress them and make build output reasonable again.
1 parent 191c537 commit 9870f66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
113113

114114
# Prevent using symbols not supported by current macOS SDK target.
115115
CFLAGS="${CFLAGS} -Werror=unguarded-availability-new"
116+
117+
# Suppress extremely frequent warnings we see in macOS SDK headers
118+
# with LLVM 10.
119+
CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined"
116120
fi
117121

118122
CPPFLAGS=$CFLAGS

0 commit comments

Comments
 (0)