| Index: pylib/gyp/xcode_emulation.py
|
| diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
|
| index 3fe8ed6c539d6ac6014040572f5f55b58ae4558f..d86413ac5d7825dd2cbb713239747a70fa5a9278 100644
|
| --- a/pylib/gyp/xcode_emulation.py
|
| +++ b/pylib/gyp/xcode_emulation.py
|
| @@ -1321,6 +1321,11 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
|
| install_name_base = xcode_settings.GetInstallNameBase()
|
| if install_name_base:
|
| env['DYLIB_INSTALL_NAME_BASE'] = install_name_base
|
| + if XcodeVersion() >= '0500' and not env.get('SDKROOT'):
|
| + sdk_root = xcode_settings._SdkRoot(configuration)
|
| + if not sdk_root:
|
| + sdk_root = xcode_settings._XcodeSdkPath('')
|
| + env['SDKROOT'] = sdk_root
|
|
|
| if not additional_settings:
|
| additional_settings = {}
|
|
|