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 /Fo instead of -o when invoking CL #354

Merged
merged 1 commit into from
Jan 22, 2018
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Dec 8, 2017

The -o option in the Microsoft C Compiler is deprecated (and has been for a very long time). The warning is tedious, so use /Fo instead. The only problem with this is that -o foo.obj must become /Fofoo.obj with no space, which requires a little support in Arg_spec.

This appears principally when compiling C++ sources, as these aren't compiled by OCaml (which already handles these differences).

Still to do is suppressing the tedious display of the source file being compiled (see ocaml/ocaml#407) but that hasn't (yet) been annoying me as much as the deprecation warning!

src/arg_spec.ml Outdated
@@ -6,6 +6,7 @@ type 'a t =
| A of string
| As of string list
| S of 'a t list
| Tight of 'a t list
Copy link
Member Author

Choose a reason for hiding this comment

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

I debated just calling this T 🙂 Another option would be to make it a parameter of S (which would have stopped the initial risk of not gathering dependency information in an earlier version) but would be a much more invasive change.

Copy link

Choose a reason for hiding this comment

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

What about Concat of string (* separator *) * 'a t list?

@dra27
Copy link
Member Author

dra27 commented Jan 22, 2018

Thanks for the review, @diml (sorry for the slowness pushing the change)

The -o option in the Microsoft C Compiler is deprecated (and has been for
a very long time). The warning is tedious, so use /Fo instead. The only
problem with this is that "-o foo.obj" must become "/Fofoo.obj" with no
space, which requires a little support in Arg_spec.

Signed-off-by: David Allsopp <[email protected]>
@ghost
Copy link

ghost commented Jan 22, 2018

sorry for the slowness pushing the change

No worries :)

Patch looks good

@dra27
Copy link
Member Author

dra27 commented Jan 22, 2018

Ta!

Travis has such a backlog with macOS at the moment (they've had severe trouble with their whole Mac infrastructure for a few days) that I'm just ignoring Mac CI for now...

@dra27 dra27 merged commit 61b3e5f into ocaml:master Jan 22, 2018
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.

1 participant