Skip to content

Commit bb87eba

Browse files
committed
unix: add extra -I paths on macOS
Porting these from the normal macOS build.
1 parent ce68189 commit bb87eba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ mv tmp Modules/readline-libedit.c
104104
# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.
105105
# So we need to set both.
106106
CFLAGS="-fPIC -I${TOOLS_PATH}/deps/include -I${TOOLS_PATH}/deps/include/ncurses"
107+
108+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
109+
CFLAGS="${CFLAGS} -I${TOOLS_PATH}/deps/lib/libffi-3.2.1/include -I${TOOLS_PATH}/deps/include/uuid"
110+
fi
111+
107112
CPPFLAGS=$CFLAGS
108113
LDFLAGS="-L${TOOLS_PATH}/deps/lib"
109114

0 commit comments

Comments
 (0)