Skip to content

Commit

Permalink
fix gyp to work on macOS without XCode
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Shigeki Ohtsu authored and refack committed May 1, 2017
1 parent a478c1a commit 8301fb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylib/gyp/xcode_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,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:
Expand Down

0 comments on commit 8301fb8

Please sign in to comment.