Skip to content

Do not export "fail.h" from "signals.h" in runtime4 #2979

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

Merged

Conversation

dvulakh
Copy link
Contributor

@dvulakh dvulakh commented Aug 27, 2024

"fail.h" is not re-exported in "signals.h" in the OCaml 5 runtime. This PR makes runtime4 consistent in this regard, which will prevent a class of errors in which a C stub compiles when building with runtime4, but not with the OCaml 5 runtime.

This can happen, for example, if a stub includes "signals.h" and calls caml_failwith without including "fail.h".

Testing: compilation & CI suffices

Signed-off-by: David Vulakh <dvulakh@janestreet.com>
@mshinwell mshinwell merged commit 12eff98 into main Aug 27, 2024
17 checks passed
@mshinwell mshinwell deleted the dvulakh.remove-caml_failwith-export-from-runtime4-signals branch August 27, 2024 16:42
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
…caml-flambda#2979)

remove [#include "fail.h"] in [runtime4/signals.h]

Signed-off-by: David Vulakh <dvulakh@janestreet.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants