Skip to content

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

Merged
raphael-proust merged 1 commit into
ocsigen:masterfrom
nojb:CAMLnoreturn_start
Sep 7, 2021
Merged

raphael-proust merged 1 commit into
ocsigen:masterfrom
nojb:CAMLnoreturn_start

Conversation

@nojb

@nojb nojb commented Sep 1, 2021

Copy link
Copy Markdown
Contributor

@nojb

nojb commented Sep 3, 2021

Copy link
Copy Markdown
Contributor Author

Friendly ping

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

nojb commented Sep 7, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

nojb commented Sep 7, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

MisterDA commented Sep 17, 2021 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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