summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-12-21 22:18:48 -0500
committerRyan Lortie <desrt@desrt.ca>2013-12-21 22:18:48 -0500
commitce190a6bd3e6f4443eb346745807695aaebe907d (patch)
treee4e98fe3058b26d944161a53d1e00882b4294135 /giscanner/sourcescanner.py
parenteb13b2bf9ac7b3cf08365906e6a03dcd74ce0922 (diff)
downloadgobject-introspection-ce190a6bd3e6f4443eb346745807695aaebe907d.tar.gz
Honour CPPFLAGS as we do CFLAGS
In all of the places that we pass through the CFLAGS, we should be doing the same with the CPPFLAGS. https://bugzilla.gnome.org/show_bug.cgi?id=720063
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 9a8bd41b..dab16027 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -289,6 +289,7 @@ class SourceScanner(object):
# Note that the generated dumper program is
# still built and linked by Visual C++.
cpp_args = ['gcc']
+ cpp_args += os.environ.get('CPPFLAGS', '').split()
cpp_args += os.environ.get('CFLAGS', '').split()
cpp_args += ['-E', '-C', '-I.', '-']
cpp_args += self._cpp_options