Skip to content

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

Closed
jzinn wants to merge 1 commit into
curl:masterfrom
jzinn:macosx-comment-typo
Closed

vtls: Fix comment typo about macosx-version-min compiler flag#4425
jzinn wants to merge 1 commit into
curl:masterfrom
jzinn:macosx-comment-typo

Conversation

@jzinn

@jzinn jzinn commented Sep 26, 2019

Copy link
Copy Markdown
Contributor

No description provided.

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

jay commented Sep 26, 2019

Copy link
Copy Markdown
Member

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

@jay jay added the build label Sep 26, 2019
@jzinn

jzinn commented Sep 26, 2019 via email

Copy link
Copy Markdown
Contributor Author

@jzinn

jzinn commented Sep 26, 2019

Copy link
Copy Markdown
Contributor Author

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.

@nickzman nickzman left a comment

Copy link
Copy Markdown
Member

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

jay commented Sep 27, 2019

Copy link
Copy Markdown
Member

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.

3 participants