From cb5fa7457f3d277e194d5ea7ba620632f3f4b6c0 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Wed, 5 Aug 2009 12:40:28 -0500 Subject: Check the CC environment variable instead of assuming to use the gcc compiler. --- giscanner/sourcescanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.1