Skip to content

Commit 95aaf08

Browse files
committed
unix: suppress some noisy compiler warnings when building tcl/tk on macOS
This makes output substantially mose concise.
1 parent 85fa953 commit 95aaf08

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

cpython-unix/build-tcl.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ rm -rf pkgs/sqlite* pkgs/tdbc*
3333

3434
pushd unix
3535

36-
CFLAGS="-fPIC -I${TOOLS_PATH}/deps/include" ./configure \
36+
CFLAGS="-fPIC -I${TOOLS_PATH}/deps/include"
37+
38+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
39+
CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined"
40+
fi
41+
42+
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" ./configure \
3743
--prefix=/tools/deps \
3844
--enable-shared=no
3945

cpython-unix/build-tix.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ chmod +x configure
2424
CFLAGS="-fPIC -DUSE_INTERP_RESULT"
2525

2626
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
27-
CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/include"
27+
CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/include -Wno-nullability-completeness -Wno-expansion-to-defined"
2828
EXTRA_CONFIGURE_FLAGS="--without-x"
2929
else
3030
EXTRA_CONFIGURE_FLAGS="--x-includes=/tools/deps/include --x-libraries=/tools/deps/lib"
3131
fi
3232

3333
# -DUSE_INTERP_RESULT is to allow tix to use deprecated fields or something
3434
# like that.
35-
CFLAGS="${CFLAGS}" ./configure \
35+
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" ./configure \
3636
--prefix=/tools/deps \
3737
--with-tcl=${TOOLS_PATH}/deps/lib \
3838
--with-tk=${TOOLS_PATH}/deps/lib \

cpython-unix/build-tk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ CFLAGS="-fPIC"
1717
LDFLAGS=""
1818

1919
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
20-
CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/include"
20+
CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/include -Wno-nullability-completeness -Wno-expansion-to-defined"
2121
LDFLAGS="-L${TOOLS_PATH}/deps/lib"
2222
EXTRA_CONFIGURE_FLAGS="--enable-aqua=yes --without-x"
2323
else
2424
EXTRA_CONFIGURE_FLAGS="--x-includes=${TOOLS_PATH}/deps/include --x-libraries=${TOOLS_PATH}/deps/lib"
2525
fi
2626

27-
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
27+
CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
2828
--prefix=/tools/deps \
2929
--with-tcl=${TOOLS_PATH}/deps/lib \
3030
--enable-shared=no \

0 commit comments

Comments
 (0)