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 ocaml-system and ocaml scripts for Windows #3337

Merged
merged 1 commit into from
May 7, 2018

Conversation

dra27
Copy link
Member

@dra27 dra27 commented May 6, 2018

The config-generation scripts in the ocaml and ocaml-system packages don't take the .exe extension on Windows and Cygwin into account. Proposing this now to solve Cygwin, as that should be otherwise working in 2.0.0.

The set_binary_mode_in is for native Windows - it should have no effect on any other platform, but on Windows it will cause the trailing \r in the output of ocamlc -where to be stripped (which is the behaviour required).

Mangling done with converting Sys.executable_name needs to account for
the .exe extension on Windows.

Additionally, when querying ocamlc -where, the script should read the
answer in text-mode in order to avoid problems with \r characters.

Signed-off-by: David Allsopp <david.allsopp@metastack.com>
@AltGr
Copy link
Member

AltGr commented May 7, 2018

Thanks!

@AltGr AltGr merged commit 14fd8a5 into ocaml:master May 7, 2018
@dra27 dra27 deleted the fix-ocaml-scripts branch May 11, 2018 15:08
@dra27 dra27 mentioned this pull request Jun 13, 2024
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.

2 participants