summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-10 13:37:55 +0000
committerJohn Ralls <jralls@ceridwen.us>2011-10-27 15:20:09 -0700
commitf8f6d038680260a7b4ff963d26e51b3cf90a3ba7 (patch)
tree4f3aa5f5dd2259fe38554734c244d01ef66d68f4
parenta4446bc6644763c1ab2fea206624da2da5ce41c7 (diff)
downloadgobject-introspection-gnome-3-2.tar.gz
scanner: split CC environment variablegnome-3-2
This fixes compilation where CC="ccache gcc" and similar. https://bugzilla.gnome.org/show_bug.cgi?id=660160 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
-rw-r--r--giscanner/sourcescanner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 5f0ec2d0..1e61ecf8 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -274,7 +274,8 @@ class SourceScanner(object):
defines = ['__GI_SCANNER__']
undefs = []
- cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']
+ cpp_args = os.environ.get('CC', 'cc').split()
+ cpp_args += ['-E', '-C', '-I.', '-']
cpp_args += self._cpp_options
proc = subprocess.Popen(cpp_args,