Workflow question (changing codegen)
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
> But you can make it work with this git alias from the first answer:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 487 bytes
Desc: not available
More information about the ghc-devs