gobject-introspection r208 - trunk/giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r208 - trunk/giscanner
- Date: Tue, 22 Apr 2008 05:30:57 +0100 (BST)
Author: johan
Date: Tue Apr 22 04:30:56 2008
New Revision: 208
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=208&view=rev
Log:
avoid sending the same options multiple times to cpp
Modified:
trunk/giscanner/sourcescanner.py
Modified: trunk/giscanner/sourcescanner.py
==============================================================================
--- trunk/giscanner/sourcescanner.py (original)
+++ trunk/giscanner/sourcescanner.py Tue Apr 22 04:30:56 2008
@@ -16,7 +16,9 @@
('-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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]