Skip to content

Commit

Permalink
macos: suppress some very chatty warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indygreg committed Apr 18, 2020
1 parent 191c537 commit 9870f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then

# Prevent using symbols not supported by current macOS SDK target.
CFLAGS="${CFLAGS} -Werror=unguarded-availability-new"

# Suppress extremely frequent warnings we see in macOS SDK headers
# with LLVM 10.
CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined"
fi

CPPFLAGS=$CFLAGS
Expand Down

0 comments on commit 9870f66

Please sign in to comment.