| Index: pylib/gyp/xcode_emulation.py
|
| diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
|
| index 3fe8ed6c539d6ac6014040572f5f55b58ae4558f..8fd72b35ba494340d00830809878b3b5e91a205f 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':
|
| + 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 = {}
|
|
|