[gobject-introspection/gnome-3-2] scanner: split CC environment variable
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/gnome-3-2] scanner: split CC environment variable
- Date: Thu, 27 Oct 2011 22:23:28 +0000 (UTC)
commit f8f6d038680260a7b4ff963d26e51b3cf90a3ba7
Author: Natanael Copa <ncopa alpinelinux org>
Date: Mon Oct 10 13:37:55 2011 +0000
scanner: split CC environment variable
This fixes compilation where CC="ccache gcc" and similar.
https://bugzilla.gnome.org/show_bug.cgi?id=660160
Signed-off-by: Natanael Copa <ncopa alpinelinux org>
giscanner/sourcescanner.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 5f0ec2d..1e61ecf 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -274,7 +274,8 @@ class SourceScanner(object):
defines = ['__GI_SCANNER__']
undefs = []
- cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']
+ cpp_args = os.environ.get('CC', 'cc').split()
+ cpp_args += ['-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]