-
Notifications
You must be signed in to change notification settings - Fork 455
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
Fix crash in "rescript build" on Windows and add test #5516
Conversation
e96c3ab
to
ad5d1ed
Compare
ad5d1ed
to
e02e3c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing find.
@@ -3,6 +3,7 @@ | |||
#include <string.h> | |||
#include <stdint.h> | |||
#include "caml/memory.h" | |||
#include "caml/osdeps.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea of what happened?
Was this removed or was it never there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 9.1.4, this wasn't there either, but
ret = CAML_SYS_STAT(p, &st);
was used instead of
ret = stat_os(p, &st);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Now CAML_SYS_STAT
does not exist anymore, this was probably an OCaml 4.06 thing?)
Fixes #5517 and tests
rescript build
with finished package on each platform.(Adding
in
jscomp/stubs/ext_basic_hash_stubs.c
fixes compiler warnings and the crash inrescript build
on Windows.)