diff options
author | Tim Lunn <tim@feathertop.org> | 2013-02-24 17:34:56 +1100 |
---|---|---|
committer | Tim Lunn <tim@feathertop.org> | 2013-03-06 08:19:04 +1100 |
commit | 95b03cf87efbd4fea4b7d55601c9752cefd29bfc (patch) | |
tree | ccb47a22b628973575044505b238db29fe7dd107 /giscanner/sourcescanner.py | |
parent | 8f7acc600b45ea5bf8ea1d6ce1fbedb5c6f9cfd5 (diff) | |
download | gobject-introspection-95b03cf87efbd4fea4b7d55601c9752cefd29bfc.tar.gz |
gi-r-scanner: add support for raw CFLAGS flags option
gi-r-scanner chokes when gir_CFLAGS have an '-include <header>' since
this is not a recognised option. This commit adds a new --cflags option
that passes cflags directly to the spawned gcc.
https://bugzilla.gnome.org/show_bug.cgi?id=695182
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index 9eb4ab4f..795c46a8 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -223,7 +223,9 @@ class SourceScanner(object): # Public API - def set_cpp_options(self, includes, defines, undefines): + def set_cpp_options(self, cflags, includes, defines, undefines): + if cflags: + self._cpp_options = cflags.split() for prefix, args in [('-I', includes), ('-D', defines), ('-U', undefines)]: |