From e16af7442c9d4a9517bbb908831e34603144514f Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Sat, 3 Sep 2011 19:53:49 +0200 Subject: Let the user override the default compiler with the CC env variable --- giscanner/sourcescanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index e3968e32..5f0ec2d0 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -274,7 +274,7 @@ class SourceScanner(object): defines = ['__GI_SCANNER__'] undefs = [] - cpp_args = ['cc', '-E', '-C', '-I.', '-'] + cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-'] cpp_args += self._cpp_options proc = subprocess.Popen(cpp_args, -- cgit v1.2.1