diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-12-08 11:48:08 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-12-08 11:48:08 -0500 |
commit | cbafcdb323307fd6bb5e48b44167fd995dc933a1 (patch) | |
tree | c78fa1fd1fe187357ee48f33d6d1add380e9da69 | |
parent | 1328045bb953e40b1978a43f180da119dc490dc3 (diff) | |
download | gobject-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.py | 1 |
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 |