Have you considered using different settings for PLTCOMPILEDROOTS depending on whether you want the debug info or not?  If you do that, you&#39;ll simply have two copies of all the .zo files, and you can simply switch between them as necessary.  Then all of Racket&#39;s automatic build dependency machinery will work for you, rather than against you.  All this assumes you are using 5.3.1, as 5.3 predated PLTCOMPILEDROOTS.<br>

<div class="gmail_extra"><br clear="all">Carl Eastlund<br>
<br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 7:34 AM, Laurent <span dir="ltr">&lt;<a href="mailto:laurent.orseau@gmail.com" target="_blank">laurent.orseau@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Because x11-racket compilation depends on an environment variable to decide if it should compile with debug info or not.<br>So if I want to recompile with a different debug option without 
modifying the source files it seems I need to remove the `compiled&#39; 
directories, right?<br>It seems that `raco setup&#39; does not recompile if the source have not changed (based on a hash I presume, since touching the files does not force recompilation either).<br>The `--force&#39; option does not do what I want either it seems.<br>



<br>Or maybe there is a better way to do that?<span class="HOEnZb"><font color="#888888"><br><br>Laurent</font></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 1:22 PM, Matthew Flatt <span dir="ltr">&lt;<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">`raco setup -c&#39; is intended to reset a whole installation, and so it<br>
doesn&#39;t adapt well to having a collection specified.<br>
<br>
Can you explain more why you need `raco setup -c my-collect&#39; instead of<br>
just `raco setup my-collect&#39;?<br>
<div><div><br>
At Thu, 29 Nov 2012 09:35:01 +0100, Laurent wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Doing<br>
&gt; $ raco setup -c my-collect<br>
&gt; takes about 30s to &quot;bootstrap from source&quot;, and it does that for each such<br>
&gt; invocation.<br>
&gt;<br>
&gt; Is it possible to reduce this time? It makes &quot;raco setup -c&quot; almost<br>
&gt; unusable.<br>
&gt;<br>
&gt; Laurent<br>
</div></div>&gt; ____________________<br>
&gt;   Racket Users list:<br>
&gt;   <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div><br></div>
</div></div><br>____________________<br>
  Racket Users list:<br>
  <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>