<div dir="ltr">(1), I would hope so. If not, that's a bug.<div>(2), hadrian supports --build-root=, such that you can have different build product trees based from one source. One of the nice features of hadrian is, that it finally is able to separate build and source directories, there are still the inplace files, which I believe should go. Yet, anything under the --build-root, which defaults to _build, should be hermetic in there. Whether or not you can just *move* those directories around is a bit complicated, primarily because there are facilities in Cabal (the Paths module), as well as potentially use of non ${pkgroot} prefixed package config files, that hardcode paths. Again the Paths module from Cabal should just be removed at some point. And missing ${pkgroot} values could be fixed. My guess is, that we've done quite a lot of making it relocatable, so just try to move it somewhere else and see if things break when calling it somewhere else, they might, but if they do, it's a bug.<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 22, 2021 at 3:27 PM Norman Ramsey <<a href="mailto:nr@cs.tufts.edu">nr@cs.tufts.edu</a>> wrote:<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've got two questions about building:<br>
<br>
 1. If my bootstrap compiler changes (e.g., from 8.10.5 to 9.0.1), is<br>
    Hadrian smart enough to rebuild everything?  If not, how do I<br>
    force it to start over?<br>
<br>
 2. At the moment I'm not installing my GHC; I'm using elements<br>
    directly from the build tree.  If I build GHC and then move the<br>
    whole tree to the whole location, will everything be happy?<br>
    Or do I need to do something?  (Again, using Hadrian.)<br>
<br>
<br>
Norman<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>