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

Whitelist MACOSX_DEPLOYMENT_TARGET #1561

Merged
merged 1 commit into from
Nov 30, 2016

Conversation

jakirkham
Copy link
Member

Closes #1269 (though I suppose PR #1278 should have already)

As promised, whitelist the environment variable MACOSX_DEPLOYMENT_TARGET so that people can override it with an external environment variable easily.

cc @msarahan

@@ -385,6 +385,8 @@ def unix_vars(prefix):

def osx_vars(compiler_vars, config):
OSX_ARCH = 'i386' if config.arch == 32 else 'x86_64'
MACOSX_DEPLOYMENT_TARGET = os.environ.get('MACOSX_DEPLOYMENT_TARGET', '10.7')

compiler_vars['CFLAGS'] += ' -arch {0}'.format(OSX_ARCH)
compiler_vars['CXXFLAGS'] += ' -arch {0}'.format(OSX_ARCH)
Copy link
Member Author

Choose a reason for hiding this comment

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

We could also add -mmacosx-version-min for good measure.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine to merge this as is. If you want to add that later, let's discuss more at that time.

@msarahan msarahan merged commit e47c298 into conda:master Nov 30, 2016
@msarahan
Copy link
Contributor

Thanks. This should hopefully help reduce the kludge.

@jakirkham jakirkham deleted the whitelist_MACOSX_DEPLOYMENT_TARGET branch December 17, 2016 02:52
@jakirkham
Copy link
Member Author

Agreed. Thanks Mike.

@github-actions
Copy link

github-actions bot commented May 9, 2022

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

conda-build forces MACOSX_DEPLOYMENT_TARGET to 10.6
2 participants