Skip to content

Commit 02c262a

Browse files
Shigeki Ohtsujoaocgreis
authored andcommitted
deps: fix gyp to work on MacOSX without XCode
This is a port of eb459c8 , used as a floating patch over gyp. Original commit message: 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: #1325 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> This was ported to v0.10 in nodejs/node-v0.x-archive#25857 PR-URL: #2843 Reviewed-By: rvagg - Rod Vagg <rod@vagg.org> Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org> Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
1 parent f0fba0b commit 02c262a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/gyp/pylib/gyp/xcode_emulation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,8 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
14791479
sdk_root = xcode_settings._SdkRoot(configuration)
14801480
if not sdk_root:
14811481
sdk_root = xcode_settings._XcodeSdkPath('')
1482+
if sdk_root is None:
1483+
sdk_root = ''
14821484
env['SDKROOT'] = sdk_root
14831485

14841486
if not additional_settings:

0 commit comments

Comments
 (0)