Commit d805ebde authored by André Anjos's avatar André Anjos 💬

[init] Default SDKROOT to CONDA_BUILD_SYSROOT if that is set

parent 0d31b297
......@@ -422,7 +422,7 @@ class Extension(DistutilsExtension):
'value (e.g. "10.9") before trying to build C/C++ extensions')
os.environ.setdefault('MACOSX_DEPLOYMENT_TARGET', target)
sdkroot = os.environ.get('SDKROOT')
sdkroot = os.environ.get('SDKROOT', os.environ.get('CONDA_BUILD_SYSROOT'))
if sdkroot is None: #not set on the environment, try resource
sdkroot = rc.get('bob.extension.macosx_sdkroot')
if sdkroot is None or not sdkroot:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment