diff options
author | Brian Cameron <Brian.Cameron@sun.com> | 2009-08-05 12:40:28 -0500 |
---|---|---|
committer | Brian Cameron <Brian.Cameron@sun.com> | 2009-08-05 12:40:28 -0500 |
commit | cb5fa7457f3d277e194d5ea7ba620632f3f4b6c0 (patch) | |
tree | ebc0f90395b42cad9e5eaf9fff45a47a09217080 | |
parent | 81956adedbc8f3134930b682471faaa1b5e4c9f7 (diff) | |
download | gobject-introspection-cb5fa7457f3d277e194d5ea7ba620632f3f4b6c0.tar.gz |
Check the CC environment variable instead of assuming to use the gcc compiler.
-rw-r--r-- | giscanner/sourcescanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index 1a8194d5..b14214ad 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, |