<br><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 29, 2012 at 1:49 PM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>></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">
I guess just using `(define-logger x11)' and `log-x11-debug' isn't<br>
enough control?<br></blockquote><div><br>The X11 logger (which could still use define-logger I suppose) is used to print all X ffi calls to standard output, so this requires a (few) level of indirection in each `_fun' definition.<br>
I really want to avoid this unnecessary cost when debugging info is not wanted.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The `--mode' argument to `raco setup' is more intended for this<br>
situation, but it requires a little work to create a mode. Carl's<br>
suggestion of PLTCOMPILEDROOTS may be simpler (though, again, it's not<br>
really meant for this job).<br></blockquote><div><br>It looks like PLTCOMPILEDROOTS does what I want. Thanks Carl for the suggestion.<br>(Btw, the docs are a bit rough on this subject, but your email of Sept. 11 on the dev list gives extensive information. It would probably be a good idea to at least link to it somehow or integrate it in the docs maybe.<br>
The email: <a href="http://lists.racket-lang.org/dev/archive/2012-September/010386.html">http://lists.racket-lang.org/dev/archive/2012-September/010386.html</a> )<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I can see how `raco setup -c' is an even simpler solution. The problem<br>
in `raco setup -c' is parsing the command line to decide whether to<br>
bootstrap `raco setup' itself from source --- and that decision has to<br>
be made before loading the command-line parser that is part of `raco<br>
setup'. There's a little conservative parser that triggers bootstrap<br>
mode is it detects anything that looks like `-c'. Maybe the solution is<br>
to have a different flag that isn't treated specially, and so it works<br>
only on collections that aren't used to implement `raco setup'.<br></blockquote><div><br>That could probably be useful in general, but now it's less necessary to me.<br><br>Thanks,<br>Laurent<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5"><br>
At Thu, 29 Nov 2012 13:34:40 +0100, Laurent wrote:<br>
> Because x11-racket compilation depends on an environment variable to decide<br>
> if it should compile with debug info or not.<br>
> So if I want to recompile with a different debug option without modifying<br>
> the source files it seems I need to remove the `compiled' directories,<br>
> right?<br>
> It seems that `raco setup' does not recompile if the source have not<br>
> changed (based on a hash I presume, since touching the files does not force<br>
> recompilation either).<br>
> The `--force' option does not do what I want either it seems.<br>
><br>
> Or maybe there is a better way to do that?<br>
><br>
> Laurent<br>
><br>
><br>
> On Thu, Nov 29, 2012 at 1:22 PM, Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br>
><br>
> > `raco setup -c' is intended to reset a whole installation, and so it<br>
> > doesn't adapt well to having a collection specified.<br>
> ><br>
> > Can you explain more why you need `raco setup -c my-collect' instead of<br>
> > just `raco setup my-collect'?<br>
> ><br>
> > At Thu, 29 Nov 2012 09:35:01 +0100, Laurent wrote:<br>
> > > Hi,<br>
> > ><br>
> > > Doing<br>
> > > $ raco setup -c my-collect<br>
> > > takes about 30s to "bootstrap from source", and it does that for each<br>
> > such<br>
> > > invocation.<br>
> > ><br>
> > > Is it possible to reduce this time? It makes "raco setup -c" almost<br>
> > > unusable.<br>
> > ><br>
> > > Laurent<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>
</div></div></blockquote></div><br></div>