Skip to content

Commit eb459c8

Browse files
author
Shigeki Ohtsu
committed
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: #1325 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 15f058f commit eb459c8

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
@@ -1471,6 +1471,8 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
14711471
sdk_root = xcode_settings._SdkRoot(configuration)
14721472
if not sdk_root:
14731473
sdk_root = xcode_settings._XcodeSdkPath('')
1474+
if sdk_root is None:
1475+
sdk_root = ''
14741476
env['SDKROOT'] = sdk_root
14751477

14761478
if not additional_settings:

0 commit comments

Comments
 (0)