caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlbuild add unexpected directories to including-dirs while building multi-targets
@ 2015-10-18  8:18 ZAN DoYe
  2015-10-18  9:44 ` Christian Lindig
  0 siblings, 1 reply; 5+ messages in thread
From: ZAN DoYe @ 2015-10-18  8:18 UTC (permalink / raw)
  To: caml-list

suppose the dir tree is:

.
├── a
│   ├── a.ml (let v= I.a)
│   ├── i
│   │   └── i.ml (let a= 1)
│   └── _tags ("i": include)
├── b
│   ├── b.ml (let v= I.b)
│   ├── i
│   │   └── i.ml (let b= 1)
│   └── _tags ("i": include)
├── myocamlbuild.ml (an empty file)
└── o.itarget (a/a.byte \n b/b.byte)

after running ocamlbuild o.otarget, the error info:

Finished, 1 target (0 cached) in 00:00:00.
+ /home/kandu/.opam/4.02.3/bin/ocamlc.opt -c -I a -I b/i -I a/i -o a/a.cmo a/a.ml
File "a/a.ml", line 1, characters 7-10:
Error: Unbound value I.a

Is there any way to isolate including-dirs while compiling multi-targets?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-18 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-18  8:18 [Caml-list] ocamlbuild add unexpected directories to including-dirs while building multi-targets ZAN DoYe
2015-10-18  9:44 ` Christian Lindig
2015-10-18 11:03   ` ZAN DoYe
2015-10-18 11:12     ` Daniel Bünzli
     [not found]   ` <5623788A.2030302@gmail.com>
2015-10-18 11:05     ` Christian Lindig

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).