Workflow question (changing codegen)

Ben Gamari ben at smart-cactus.org
Mon Jul 1 19:03:57 UTC 2019


Sebastian Graf <sgraf1337 at gmail.com> writes:

> Re: git worktree: That's the workflow I'm currently using. It has its
> problems with submodules, see
> https://stackoverflow.com/questions/31871888/what-goes-wrong-when-using-git-worktree-with-git-submodules.
> But you can make it work with this git alias from the first answer:
> https://gitlab.com/clacke/gists/blob/0c4a0b6e10f7fbf15127339750a6ff490d9aa3c8/.config/git/config#L12.
> Just go into your main checkout and do `git wtas ../T9876`. AFAIR it
> interacts weirdly with MinGW's git or git for Windows, but nothing you
> can't work around.
>
> Anyway, I was hoping that one day hadrian will be smart enough to have a
> build directory for each branch or something, so that I would only need one
> checkout where I can switch between branches as needed. In the meantime,
> `git wtas` does what I want.
>
For what it's worth, Hadrian can already do this. Just pass the
--build-root=$DIR flag and all build artifacts will end up in $DIR
instead of the usual _build. I'm not sure how robust it is on branch
switches, but it's at least a start.

Cheers,

- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190701/ad14395c/attachment.sig>


More information about the ghc-devs mailing list