[gobject-introspection] Check the CC environment variable instead of assuming to use the gcc compiler.



commit cb5fa7457f3d277e194d5ea7ba620632f3f4b6c0
Author: Brian Cameron <Brian Cameron sun com>
Date:   Wed Aug 5 12:40:28 2009 -0500

    Check the CC environment variable instead of assuming to use the gcc compiler.

 giscanner/sourcescanner.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 1a8194d..b14214a 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]