[gobject-introspection] Let the user override the default compiler with the CC env variable
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Let the user override the default compiler with the CC env variable
- Date: Sat, 3 Sep 2011 18:47:53 +0000 (UTC)
commit e16af7442c9d4a9517bbb908831e34603144514f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Sep 3 19:53:49 2011 +0200
Let the user override the default compiler with the CC env variable
giscanner/sourcescanner.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index e3968e3..5f0ec2d 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]