summaryrefslogtreecommitdiffstats
path: root/external/python3/python-3.3.0-clang.patch.1
blob: 9001110fbed442cf4c73a004d633cc7033adaa64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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