Check the CC environment variable instead of assuming to use the gcc compiler.
authorBrian Cameron <Brian.Cameron@sun.com>
Wed, 5 Aug 2009 17:40:28 +0000 (12:40 -0500)
committerBrian Cameron <Brian.Cameron@sun.com>
Wed, 5 Aug 2009 17:40:28 +0000 (12:40 -0500)
giscanner/sourcescanner.py

index 1a8194d..b14214a 100644 (file)
@@ -250,7 +250,7 @@ class SourceScanner(object):
 
         defines = ['__GI_SCANNER__']
         undefs = []
-        cpp_args = ['gcc', '-E', '-C', '-I.', '-']
+        cpp_args = [os.environ.get('CC', 'gcc'), '-E', '-C', '-I.', '-']
 
         cpp_args += self._cpp_options
         proc = subprocess.Popen(cpp_args,