Bug 590883 - Use 'cc' instead of 'gcc' for preprocessing
authorColin Walters <walters@verbum.org>
Mon, 24 Aug 2009 18:23:21 +0000 (14:23 -0400)
committerColin Walters <walters@verbum.org>
Mon, 24 Aug 2009 18:23:21 +0000 (14:23 -0400)
Don't hardcode gcc, any cc which handles those options is good
enough; in particular this is reported to fix Sun Studio.

giscanner/sourcescanner.py

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