Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Changing implementations of standard libraries...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Changing implementations of standard libraries...
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....