gobject-introspection r208 - trunk/giscanner



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]