Fix Corelib detection on dune exec -- rocq with dune 3.24#22252
Fix Corelib detection on dune exec -- rocq with dune 3.24#22252rlepigre-skylabs-ai wants to merge 1 commit into
dune exec -- rocq with dune 3.24#22252Conversation
9c42785 to
dc48730
Compare
|
@coqbot run full ci |
|
Isn't this a dune bug? I'm not sure we want workaround code for it. If we do want code for it maybe we could rely on INSIDE_DUNE instead of unconditionally crawling the filesystem? |
I'm not sure this qualifies as a dune bug, as we're kind of abusing implementation details. The change proposed in ocaml/dune#14432 seems pretty reasonable to me, but maybe @Alizter can comment. For context, we relied on
Something like that might mess with composed builds, and would also prevent running |
|
https://dune.readthedocs.io/en/latest/reference/cli.html#describe-dune-exec
How is running from the build layout "as if installation was performed"?
It's explicitly not supported when configured relocatable. relocatable rocq expects the install layout, not the build layout. |
|
Checking if |
That would definitely work too. |
|
BTW coq_config_to_make call (in test-suite/dune) is probably broken by this dune change too (I didn't check though). |
See #Dune devs & users > dune exec changed?.
CC @SkySkimmer