dune build @check, but only for a specific target
#6969
Replies: 3 comments 1 reply
-
|
What you can do is define a |
Beta Was this translation helpful? Give feedback.
-
|
Aliases are scoped by directories, so you can do |
Beta Was this translation helpful? Give feedback.
-
|
I think this should work if you use a module name: So for example: Although note that this doesn't type check |
Beta Was this translation helpful? Give feedback.
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 ?"
Beta Was this translation helpful? Give feedback.
All reactions