summaryrefslogtreecommitdiff
path: root/giscanner/dumper.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/dumper.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/dumper.py')
-rw-r--r--giscanner/dumper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index ff6c4c12..b415dd13 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -215,6 +215,9 @@ class DumpCompiler(object):
args.append("-Wno-deprecated-declarations")
pkgconfig_flags = self._run_pkgconfig('--cflags')
args.extend([utils.cflag_real_include_path(f) for f in pkgconfig_flags])
+ cppflags = os.environ.get('CPPFLAGS', '')
+ for cppflag in cppflags.split():
+ args.append(cppflag)
cflags = os.environ.get('CFLAGS', '')
for cflag in cflags.split():
args.append(cflag)
@@ -263,6 +266,9 @@ class DumpCompiler(object):
else:
args.append('-export-dynamic')
+ cppflags = os.environ.get('CPPFLAGS', '')
+ for cppflag in cppflags.split():
+ args.append(cppflag)
cflags = os.environ.get('CFLAGS', '')
for cflag in cflags.split():
args.append(cflag)