Skip to content

Commit 58a38b4

Browse files
committed
unix: consult BUILD_TRIPLE when changing host cflags
I think this makes more intuitive sense.
1 parent b292b16 commit 58a38b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpython-unix/build-cpython.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ EOF
128128
# Adding /usr paths on Linux is a bit funky. This is a side-effect or our
129129
# custom Clang purposefully omitting default system search paths to help
130130
# prevent unwanted dependencies from sneaking in.
131-
case "${TARGET_TRIPLE}" in
132-
i686-unknown-linux-gnu)
131+
case "${BUILD_TRIPLE}" in
132+
x86_64-unknown-linux-gnu)
133133
EXTRA_HOST_CFLAGS="${EXTRA_HOST_CFLAGS} -I/usr/include/x86_64-linux-gnu"
134134
EXTRA_HOST_CPPFLAGS="${EXTRA_HOST_CPPFLAGS} -I/usr/include/x86_64-linux-gnu"
135135
EXTRA_HOST_LDFLAGS="${EXTRA_HOST_LDFLAGS} -L/usr/lib/x86_64-linux-gnu"

0 commit comments

Comments
 (0)