summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2011-09-03 19:53:49 +0200
committerColin Walters <walters@verbum.org>2011-09-03 14:42:40 -0400
commite16af7442c9d4a9517bbb908831e34603144514f (patch)
treeae974a5db57401fe98d5cd36cf9f5b312e2fc630 /giscanner/sourcescanner.py
parent0f081d7bda792548348b330f4a99ef3788709ea6 (diff)
downloadgobject-introspection-e16af7442c9d4a9517bbb908831e34603144514f.tar.gz
Let the user override the default compiler with the CC env variable
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index e3968e32..5f0ec2d0 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -274,7 +274,7 @@ class SourceScanner(object):
defines = ['__GI_SCANNER__']
undefs = []
- cpp_args = ['cc', '-E', '-C', '-I.', '-']
+ cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']
cpp_args += self._cpp_options
proc = subprocess.Popen(cpp_args,