Let the user override the default compiler with the CC env variable
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Sat, 3 Sep 2011 17:53:49 +0000 (19:53 +0200)
committerColin Walters <walters@verbum.org>
Sat, 3 Sep 2011 18:42:40 +0000 (14:42 -0400)
giscanner/sourcescanner.py

index e3968e3..5f0ec2d 100644 (file)
@@ -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,