summaryrefslogtreecommitdiff
path: root/devel/gobject-introspection/files/patch-giscanner_sourcescanner.py
blob: 999fc742b2ffd5b897f063e28c011052f1cc21d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- giscanner/sourcescanner.py.orig	2013-03-06 23:53:19.000000000 +0100
+++ giscanner/sourcescanner.py	2013-06-28 22:01:04.000000000 +0200
@@ -281,8 +281,11 @@
         # some help from gcc from MinGW/Cygwin or so.
         # Note that the generated dumper program is
         # still built and linked by Visual C++.
-        if 'cl' in cpp_exec:
-            cpp_args = 'gcc'.split()
+        if 'clang' not in cpp_exec:
+            if 'cl' in cpp_exec:
+                cpp_args = 'gcc'.split()
+            else:
+	        cpp_args = cpp_exec
         else:
             cpp_args = cpp_exec
         cpp_args += ['-E', '-C', '-I.', '-']