Skip to content
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

Use CAMLnoreturn_{start,end} instead of Noreturn #880

Merged
merged 1 commit into from
Sep 7, 2021
Merged

Use CAMLnoreturn_{start,end} instead of Noreturn #880

merged 1 commit into from
Sep 7, 2021

Conversation

nojb
Copy link
Contributor

@nojb nojb commented Sep 1, 2021

@nojb
Copy link
Contributor Author

nojb commented Sep 3, 2021

Friendly ping

@raphael-proust raphael-proust merged commit f23f313 into ocsigen:master Sep 7, 2021
@nojb
Copy link
Contributor Author

nojb commented Sep 7, 2021

Thanks! Sorry for the lag, but this macro does not seem to be available on 4.02... is that a problem?

@nojb nojb deleted the CAMLnoreturn_start branch September 7, 2021 08:21
@smorimoto
Copy link
Member

I personally believe that supporting MSVC would be more valuable than keeping 4.02 support, but I don't know why this fails in 4.02. If I remember correctly, it would have been available even with 4.02.

@nojb
Copy link
Contributor Author

nojb commented Sep 7, 2021

I personally believe that supporting MSVC would be more valuable than keeping 4.02 support, but I don't know why this fails in 4.02. If I remember correctly, it would have been available even with 4.02.

We could continue to use Noreturn for 4.02 (if there is an easy way to test for the OCaml version using the C preprocessor).

@smorimoto
Copy link
Member

Yes, that sounds good, but is there a way to make a special version constraint only on Windows? Otherwise, I think it would be clean to drop 4.02.

@MisterDA
Copy link
Contributor

MisterDA commented Sep 17, 2021

There is, see https://ocaml.org/manual/intfc.html#ss:c-internal-macros. Just opened a PR to restore Noreturn on 4.02.

Some parts of Lwt already don't support 4.02.

- lwt_ppx → ppxlib >= 0.16.0 → ocaml >= 4.04.1
    base of this switch (use `--unlock-base' to force)

In #843 I suggested to raise the minimum requirement on 4.06 (edit: at least on Windows).

@smorimoto
Copy link
Member

Oh, my "IIRC" proved wrong again here!
If we raise the downward version constraint on Windows, the #887 seems not necessary. And I would like to +1 to making it happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants