Skip to content

Commit 4165e73

Browse files
committed
unix: don't pass --with-build-cc for ncurses on Apple
It breaks the build.
1 parent 9c669d6 commit 4165e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpython-unix/build-ncurses.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CONFIGURE_FLAGS="
4343
--enable-widec"
4444

4545
# ncurses wants --with-build-cc when cross-compiling.
46-
if [ "${BUILD_TRIPLE}" != "${TARGET_TRIPLE}" ]; then
46+
if [[ "${BUILD_TRIPLE}" != "${TARGET_TRIPLE}" && "${PYBUILD_PLATFORM}" != "macos" ]]; then
4747
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-build-cc=${TOOLS_PATH}/${TOOLCHAIN}/bin/clang"
4848
fi
4949

0 commit comments

Comments
 (0)