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

vtls: Fix comment typo about macosx-version-min compiler flag #4425

Closed
wants to merge 1 commit into from

Conversation

jzinn
Copy link
Contributor

@jzinn jzinn commented Sep 26, 2019

No description provided.

@jay jay requested a review from nickzman September 26, 2019 03:05
@jay
Copy link
Member

jay commented Sep 26, 2019

Are you sure it's a typo, isn't mmacos-version-min valid?

@jay jay added the build label Sep 26, 2019
@jzinn
Copy link
Contributor Author

jzinn commented Sep 26, 2019 via email

@jzinn
Copy link
Contributor Author

jzinn commented Sep 26, 2019

I had not considered that macos-version-min could be valid, given that macosx-version-min already exists. It looks like both are valid for clang but only one for gcc.

Here's a test showing that gcc accepts macosx-version-min:

$ touch empty.c
$ /opt/gcc-7.3.0/bin/gcc -O2 -fpic -shared empty.c -mmacosx-version-min=10.11

Here's a test showing that gcc does not accept macos-version-min:

$ touch empty.c
$ /opt/gcc-7.3.0/bin/gcc -O2 -fpic -shared empty.c -mmacos-version-min=10.11
gcc: error: unrecognized command line option ‘-mmacos-version-min=10.11’; did you mean ‘-mmacosx-version-min=’?

I also grepped through the current gcc source code and did not find macos-version-min.

Please close this if you like the current spelling.

Copy link
Member

@nickzman nickzman left a comment

Choose a reason for hiding this comment

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

The manual for cc in Xcode 11.1 says "-mmacosx-version-min", so that's good enough for me.

@jay jay closed this in c7e6b71 Sep 27, 2019
@jay
Copy link
Member

jay commented Sep 27, 2019

Thanks

@lock lock bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants