Skip to content

Commit 8301fb8

Browse files
Shigeki Ohtsurefack
Shigeki Ohtsu
authored andcommitted
fix gyp to work on macOS without XCode
Most builds are possible with just the "Command Line Tools for XCode" nodejs has extensive experience with this scenario BUG=gyp:477 nodejs PR-URL: nodejs/node#1325 Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent a478c1a commit 8301fb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylib/gyp/xcode_emulation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,8 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
16621662
sdk_root = xcode_settings._SdkRoot(configuration)
16631663
if not sdk_root:
16641664
sdk_root = xcode_settings._XcodeSdkPath('')
1665+
if sdk_root is None:
1666+
sdk_root = ''
16651667
env['SDKROOT'] = sdk_root
16661668

16671669
if not additional_settings:

0 commit comments

Comments
 (0)