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

src,macos: fix mutually exclusive flags #42

Merged
merged 1 commit into from
May 2, 2019
Merged

Conversation

shawwn
Copy link
Contributor

@shawwn shawwn commented May 2, 2019

If IPHONEOS_DEPLOYMENT_TARGET is specified, don't append MACOSX_DEPLOYMENT_TARGET flags.

When building for iOS, it's an error to have both -mmacosx-version-min=... and -miphoneos-version-min=... compiler flags.

This PR ensures that if IPHONEOS_DEPLOYMENT_TARGET is specified, no -mmacosx-version-min=... flags will be emitted.

See also nodejs/node-gyp#1737

If IPHONEOS_DEPLOYMENT_TARGET is specified, don't append
MACOSX_DEPLOYMENT_TARGET flags.
@refack
Copy link
Owner

refack commented May 2, 2019

Thank you for following up!

@refack refack changed the title gyp: fix IPHONEOS_DEPLOYMENT_TARGET src,macos: fix mutually exclusive flags May 2, 2019
@refack refack merged commit 0e5171a into refack:master May 2, 2019
@refack
Copy link
Owner

refack commented May 2, 2019

@shawwn will you be willing to write a test for this fix? Maybe something based on https://github.com/refack/GYP/blob/0e5171ac64f5241e1428f929474c246c2d226b28/test/mac/gyptest-deployment-target.py#L22

@shawwn
Copy link
Contributor Author

shawwn commented May 4, 2019

Sure, see #45

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