blob: f0b87f573afa75ef2b8846ff8c4d7706cf4b0f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-af,v 1.1 2012/02/10 15:14:56 drochner Exp $
deal with CC env var consisting of multiple words
--- giscanner/sourcescanner.py.orig 2011-09-03 18:42:14.000000000 +0000
+++ giscanner/sourcescanner.py
@@ -274,7 +274,7 @@ 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() + ['-E', '-C', '-I.', '-']
cpp_args += self._cpp_options
proc = subprocess.Popen(cpp_args,
|