-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility between enabled_if
and foreign_stubs
?
#10675
Comments
Thanks for your report.
What are you trying to do? |
Signed-off-by: Etienne Millon <[email protected]>
repro in #10676 |
This is a minification of a crash I encountered in the context of Mirage cross-compilation. So I wanted to override |
Executables with same name can have different `(foreign_stubs)` attached to them, as long as there's no name collision. Fixes ocaml#10675 Signed-off-by: Etienne Millon <[email protected]>
Good to know thanks. To clarify, do you plan on relying on this being fixed? In other words, would you be fine if the fix is just a better error message? |
No. I think I now know how to work around it if need be.
Yes, that would be nice! |
When executables with the same name have different `(foreign_stubs)` attached, we would crash. Fixes ocaml#10675 Signed-off-by: Etienne Millon <[email protected]>
Signed-off-by: Etienne Millon <[email protected]>
When executables with the same name have different `(foreign_stubs)` attached, we would crash. Fixes ocaml#10675 Signed-off-by: Etienne Millon <[email protected]>
Using dune version 3.16.0, I’ve tried to define 2 ways to build an executable depending on the context, once adding a foreign stub (to override the default
main
). This makes dune crash.Only the
dune
file contains something really relevant I think, but here is the full setup:With that setup,
dune build
crashes with:with the following build log (redacted with pseudo-variables for legibility):
FWIW, if I define the
foreign_stubs
in bothexecutable
stanzas, namely:I get:
The text was updated successfully, but these errors were encountered: