[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mirari updates

On Thu, Feb 28, 2013 at 4:53 PM, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
On 28 Feb 2013, at 16:37, Mike McClurg <mike.mcclurg@xxxxxxxxx> wrote:
> That's a really nice feature! I think what Vincent was looking for (correct me if I'm wrong, Vincent) is the way to run arbitrary commands without switching back and forth between compilers. I'm thinking of:
> $ opam config env --switch 4.01.0+mirage-xen -- obuild build
> So that I can do a mirage build in my current dir, but still use the system compiler, for instance. This would be a useful feature outside of mirari.

That's correct: we currently don't have a way to spawn a subshell with the environment variables for a different switch.  Note that the subshell does *not* need to call OPAM, only obuild.

Thomas, I (think) this is what our friend in https://github.com/OCamlPro/opam/issues/482 wanted :-)

Yes, in addition to being less evil, I think that would allow us to do:

$ `opam config env-variables` some command

With those variables in the environment for "some command".




Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.