Fix python3 build on a clean OS X with no /usr/include

Change-Id: I5982c44d5995baeaffff4ff12316f1f8fa7d0ade
This commit is contained in:
Tor Lillqvist
2013-09-22 16:14:26 +03:00
parent c86a23b9c7
commit 1727fc2794
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
-*- Mode: diff -*-
--- python3/setup.py
+++ python3/setup.py
@@ -436,7 +436,7 @@
if ret >> 8 == 0:
with open(tmpfile) as fp:
for line in fp.readlines():
- if line.startswith("gcc version"):
+ if line.startswith("gcc version") or line.startswith("clang -cc1 version"):
is_gcc = True
elif line.startswith("#include <...>"):
in_incdirs = True