From: Yotam Barnoy <yotambarnoy@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] opam local switch
Date: Thu, 18 Sep 2014 17:50:47 -0400 [thread overview]
Message-ID: <CAN6ygOkjAOWPcZyFnUkfAKxNWM5-Bx2W+W8t+RXOdHYVe=2pdQ@mail.gmail.com> (raw)
In-Reply-To: <B1726E19-F6A7-4922-9039-F06E64E739FA@recoil.org>
[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]
OPAMSWITCH appears undocumented, though it's referred to in the man page
under opam --switch ("This is equivalent to setting $OPAMSWITCH")
My question is, if I set OPAMSWITCH, will I then be able to run regular
(non-opam) ocaml build commands in the local shell in the given compiler,
while running commands in a different shell with a different compiler? If
not, is such a feature planned?
-Yotam
On Thu, Sep 18, 2014 at 5:24 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 18 Sep 2014, at 22:20, Yotam Barnoy <yotambarnoy@gmail.com> wrote:
>
> > I have a question about opam. I would like to play with certain compiler
> versions, but I don't want the switch to happen globally, because I still
> need to compile regular code. Is it possible to switch to another compiler
> locally (within a particular shell session) via environment variables,
> while using my regular compiler in another shell session?
> >
> > If this is the way things work already, I apologize in advance -- it
> appeared to me that running opam switch modifies some global state that
> directly affects other pre-existing shell sessions.
>
> It's worth reading the man page for OPAM ("man opam" or "opam --help"),
> which lists all the environment variables and command-line options
> available.
>
> There is OPAMSWITCH (or the command line --switch option) which will fix a
> particular switch to run the opam command set in.
>
> best,
> Anil
>
>
[-- Attachment #2: Type: text/html, Size: 1914 bytes --]
next prev parent reply other threads:[~2014-09-18 21:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 21:20 Yotam Barnoy
2014-09-18 21:24 ` Anil Madhavapeddy
2014-09-18 21:50 ` Yotam Barnoy [this message]
2014-09-18 22:28 ` Grégoire Henry
2014-09-18 22:29 ` Yotam Barnoy
2014-09-19 7:21 ` Louis Gesbert
2014-09-19 7:30 ` Gabriel Scherer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN6ygOkjAOWPcZyFnUkfAKxNWM5-Bx2W+W8t+RXOdHYVe=2pdQ@mail.gmail.com' \
--to=yotambarnoy@gmail.com \
--cc=anil@recoil.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox