[Xapian-tickets] [Xapian] #244: bindings should use "swig -MD"

Xapian nobody at xapian.org
Thu Apr 24 03:10:16 BST 2008


#244: bindings should use "swig -MD"
-----------------------------+----------------------------------------------
 Reporter:  olly             |        Owner:  richard 
     Type:  defect           |       Status:  new     
 Priority:  normal           |    Milestone:          
Component:  Xapian-bindings  |      Version:  SVN HEAD
 Severity:  normal           |   Resolution:          
 Keywords:                   |    Blockedby:          
 Platform:  All              |     Blocking:          
-----------------------------+----------------------------------------------
Changes (by olly):

  * milestone:  1.1.0 =>


Old description:

> SWIG supports automatic generation of dependencies via -MD, etc options
> similar
> to those GCC supports.  The bindings should use this rather than the new
> xapian-config's --swigheaders option (which should then be backed out).
> Using
> SWIG -MD is better as it will give us more precise dependencies.

New description:

 SWIG supports automatic generation of dependencies via ``-MD``, etc
 options similar to those which GCC supports.  The bindings should use this
 to ease development - then if you modify a xapian-core header which SWIG
 parses directly, ``make`` in the bindings will know to rerun SWIG.

--

Comment:

 In fact, I'm just going to back out the --swigheaders change, and unset
 the milestone on this bug.  Once we release a xapian-config with this
 option, we have to worry about breaking compatibility if we remove it
 again, so we definitely need to resolve that part for 1.1.0.

 The second part - using ``-MD`` instead - is less urgent I think.  Nobody
 has complained about the lack of such dependencies in release versions -
 these dependencies are really only useful if you're developing and so
 might modify xapian-core.  And there's an easy workaround - just: ``touch
 xapian.i``

-- 
Ticket URL: <http://trac.xapian.org/ticket/244#comment:7>
Xapian <http://trac.xapian.org>
Xapian



More information about the Xapian-tickets mailing list