dune build @check, but only for a specific target
#6969
Unanswered
ELLIOTTCABLE
asked this question in
Q&A
Replies: 3 comments 1 reply
|
What you can do is define a |
0 replies
|
Aliases are scoped by directories, so you can do |
1 reply
|
I think this should work if you use a module name: So for example: Although note that this doesn't type check |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
At the moment, there doesn't seem to be an idiomatic/beautiful way to build just the
cmt{,i}s for a specific target.For example, if one usually builds
dune build src/api.bcfor a given subproject instead of the fulldune buildordune build src, I can't figure out an equivalent todune build @src/api.bc/checkor what-have-you.I can emulate the behaviour to some extent with something like
dune build src/.api.eobjs/byte/dune__exe__Api.cm{i,t,ti}, butthere's no variables for
.cmt{,i}, so it's pretty ugly, fragile, and tied to Dune's implementation; andand it doesn't seem like those can be generated for executable artifacts anyway, unless I'm mis-using them?
Is there a blessed path towards something like this? "Just typecheck the things that would be necessary to build ?"
All reactions