diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-04-22 04:30:56 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-22 04:30:56 +0000 |
commit | ae5fa7923d4203a65f669e2b186494139c678be3 (patch) | |
tree | 0427422514cd99088521397503f669b1995a5837 /giscanner/sourcescanner.py | |
parent | 0c8c437dcfb26fb9cf7cbf3fe4c0d9426936b588 (diff) | |
download | gobject-introspection-ae5fa7923d4203a65f669e2b186494139c678be3.tar.gz |
avoid sending the same options multiple times to cpp
svn path=/trunk/; revision=208
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 75e06fcb..16b43163 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -16,7 +16,9 @@ class SourceScanner(object): ('-D', defines), ('-U', undefines)]: for arg in (args or []): - self._cpp_options.append(prefix + arg) + opt = prefix + arg + if not opt in self._cpp_options: + self._cpp_options.append(opt) def parse_file(self, filename): self._parse_one(filename) |