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

fix(compiler): Report Win32 instead of Cygwin in JS compiler #1251

Merged
merged 2 commits into from
May 27, 2022

Conversation

phated
Copy link
Member

@phated phated commented May 24, 2022

The JS version of the compiler kept crashing because it was unable to locate the stdlib. This was due to JSOO reporting itself as "Cygwin" instead of "Win32". We've pushed for a lot of upstream changes in Fp so we use the correct separators on Windows, but that doesn't happen if it thinks it is running in Cygwin.

This hack (placed in Grain_utils so pretty much everything will get it applied) will swap us back to reporting Win32 and make the all our tools work.

@phated phated requested a review from a team May 24, 2022 03:40
@phated
Copy link
Member Author

phated commented May 24, 2022

Looks like this might be causing a bug in the relative import resolution. I'll need to debug before we can land it.

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version looks great!

compiler/src/utils/filepath.re Show resolved Hide resolved
@phated phated merged commit 584bcad into main May 27, 2022
@phated phated deleted the phated/jsoo-os-type branch May 27, 2022 22:04
@github-actions github-actions bot mentioned this pull request May 31, 2022
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.

3 participants