On 10/24/06, <b class="gmail_sendername">Duncan Coutts</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>Before the 6.6 release we had a longish discussion on how to do<br>configurations and their semantics and implementation complexity etc.<br><br>I would like to re-propose the last scheme that I cam up with. I'll try
<br>to make it a concrete proposal as well as giving some motivating<br>examples to give the intuition of the meaning.</blockquote><div><br>The only way I have really wanted to use configurations so far is to build debug, profiling, and optimized versions of a library. In order to build multiple configurations, is it going to still be the case that I have to "configure / build / install" separately for each configuration? I would like to be able to say something like "
Setup.lhs configure --optimized --debug --profiled" to build all three versions at once.<br><br>Also, let's say I have this:<br><br> Name: foo<br> Version: 1.0<br> <br> configuration: flag(DEBUG)<br> cpp-options: -DDEBUG
<br><br> Name: bar<br> Build-depends: foo >= 1.0<br><br> configuration: flag(DEBUG)<br> Build-depends: ????<br><br>How can I say that I want the DEBUG version of package "bar" to depend on the DEBUG version of package "foo."? Is this allowed?
<br><br> Name: foo<br> Version: 1.0<br><br> configuration: flag(debug)<br> Name: foo-debug<br> <br>Otherwise, how can I have a debug and an optimized configuration of a given library installed at the same time?