summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-10 13:37:55 +0000
committerColin Walters <walters@verbum.org>2011-10-10 10:58:44 -0400
commit33293e16045cb1667c0be8c13cb60daeec0594a9 (patch)
tree85649c139cf04707f59fa39dfb319ddc19599f81 /giscanner/sourcescanner.py
parent8e970f46b8525396009d4d833a1f1cdacd3df6a1 (diff)
downloadgobject-introspection-33293e16045cb1667c0be8c13cb60daeec0594a9.tar.gz
scanner: split CC environment variable
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>
Diffstat (limited to 'giscanner/sourcescanner.py')
-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,