[Omake] Re: vmount via hard links on Win32

Jason Hickey jyh at cs.caltech.edu
Thu Sep 14 09:47:45 PDT 2006


Dmitry Bely wrote:
> On 9/14/06, David Kågedal <davidk at lysator.liu.se> wrote:
...
>> Just use vmount without any flags.  It works fine, as long as you
>> apply the patch I posted for compiling C (Svn has been updated with
>> it, plus mor of similar fixes, thank you!).  I haven't tried any
>> O'Caml stuff, but I don't why it should work equally well there.
> 
> I have just tried vmount without flags for my Ocaml project - it does
> not work (fails to find proper dependencies(?) and tries to compile
> files in the wrong order). Maybe I am missing something?

The problem is that (currently) ocamldep can't figure out dependencies 
unless the files exist.  Suppose a file a.ml contains a line "open B", 
then ocamldep reports the dependency "a.cmo:  b.cmi" only if b.ml exists.

This will be fixed with the OCaml 3.10 release (by enabling closer 
interaction between OCaml and ocamldep), so it should be possible to use 
vmount without l.

Using hardlinks in Win32 is still useful because it is faster and uses 
less space than copying files.  Also, Vista adds support for symbolic 
links (finally we enter the 1980s:), so we'll want to prepare for those 
as well.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createsymboliclink.asp

Jason

-- 
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257


More information about the Omake mailing list