From: Shigeki Ohtsu Date: Tue, 10 Feb 2015 00:27:52 +0000 (+0900) Subject: tools: fix gyp to work on MacOSX without XCode X-Git-Tag: v4.4.1~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ffef48fee5cc9ad4854b011bc213ab88548cca6;p=platform%2Fupstream%2Fnodejs.git tools: fix gyp to work on MacOSX without XCode This issue has already submitted to the upstream in https://code.google.com/p/gyp/issues/detail?id=477 Use this commit until the upstream is to be fixed. PR-URL: https://github.com/iojs/io.js/pull/1325 Reviewed-By: Fedor Indutny Reviewed-By: Ben Noordhuis --- diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py index 5de9ac1..407ead0 100644 --- a/tools/gyp/pylib/gyp/xcode_emulation.py +++ b/tools/gyp/pylib/gyp/xcode_emulation.py @@ -1495,6 +1495,8 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration, sdk_root = xcode_settings._SdkRoot(configuration) if not sdk_root: sdk_root = xcode_settings._XcodeSdkPath('') + if sdk_root is None: + sdk_root = '' env['SDKROOT'] = sdk_root if not additional_settings: