Back out the previous change. Now go back to hardcoding compiler to gcc.
authorBrian Cameron <Brian.Cameron@sun.com>
Wed, 5 Aug 2009 19:25:30 +0000 (14:25 -0500)
committerBrian Cameron <Brian.Cameron@sun.com>
Wed, 5 Aug 2009 19:25:30 +0000 (14:25 -0500)
Using CC fails when building gobject-introspection because CC is defined to
be $(SHELL) scripts/shave cc '$(SHAVE_SAVED_CC)'.  A more sophisticated fix
will be needed later.

giscanner/sourcescanner.py

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