From: ZAN DoYe <zandoye@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlbuild add unexpected directories to including-dirs while building multi-targets
Date: Sun, 18 Oct 2015 16:18:02 +0800 [thread overview]
Message-ID: <562355BA.3020802@gmail.com> (raw)
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?
next reply other threads:[~2015-10-18 8:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 8:18 ZAN DoYe [this message]
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
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=562355BA.3020802@gmail.com \
--to=zandoye@gmail.com \
--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