-
Notifications
You must be signed in to change notification settings - Fork 428
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
Whitelist MACOSX_DEPLOYMENT_TARGET #1561
Conversation
@@ -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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Thanks. This should hopefully help reduce the kludge. |
Agreed. Thanks Mike. |
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! |
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