summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-04-22 04:30:56 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-22 04:30:56 +0000
commitae5fa7923d4203a65f669e2b186494139c678be3 (patch)
tree0427422514cd99088521397503f669b1995a5837 /giscanner/sourcescanner.py
parent0c8c437dcfb26fb9cf7cbf3fe4c0d9426936b588 (diff)
downloadgobject-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.py4
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)