caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Changing implementations of standard libraries...
Date: Sun, 30 Oct 2005 14:12:27 +1300	[thread overview]
Message-ID: <ad8cfe7e0510291812q3a9be9fcr9992a6370ae7003e@mail.gmail.com> (raw)
In-Reply-To: <ad8cfe7e0510291745o7a347a56o9992c50d4b6a340@mail.gmail.com>

Include paths.

I see from the compiler sources, that when specifying -vmthreads, it
adds +vmthreads to the HEAD of the include paths.

When someone does -I on the command line, I assume these go at the
TAIL of the include paths?

And, because +vmthreads is at the head of the include path, it finds
stdlib.cma in +vmthreads directory BEFORE the standard include
directory, hence choosing the correct alternative implementation.

Is this how it works?

Sooo.... to make life simple for building apps targeting DST, I could
make a customised version of the compiler, adding say a "dst" flag
that specifies a different directory for a specialised implementation
of the standard libraries, and threads, etc?

And then, if DST ever takes off, could get integrated into the main
ocaml suite? ;D Heh heh heh....

Jonathan


      reply	other threads:[~2005-10-30  1:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29  3:47 Jonathan Roewen
2005-10-29 11:36 ` Gerd Stolpmann
2005-10-30  0:45   ` Jonathan Roewen
2005-10-30  1:12     ` Jonathan Roewen [this message]

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=ad8cfe7e0510291812q3a9be9fcr9992a6370ae7003e@mail.gmail.com \
    --to=jonathan.roewen@gmail.com \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).