summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-12-08 11:48:08 -0500
committerRyan Lortie <desrt@desrt.ca>2013-12-08 11:48:08 -0500
commitcbafcdb323307fd6bb5e48b44167fd995dc933a1 (patch)
treec78fa1fd1fe187357ee48f33d6d1add380e9da69
parent1328045bb953e40b1978a43f180da119dc490dc3 (diff)
downloadgobject-introspection-cbafcdb323307fd6bb5e48b44167fd995dc933a1.tar.gz
scanner: make sure we pass CFLAGS to cpp
When doing the source scanning in giscanner, make sure we pass the user's CFLAGS environment variable to the compiler, as we do for the dumper. https://bugzilla.gnome.org/show_bug.cgi?id=720063
-rw-r--r--giscanner/sourcescanner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index a115158e..9a8bd41b 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('CFLAGS', '').split()
cpp_args += ['-E', '-C', '-I.', '-']
cpp_args += self._cpp_options