aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/gyp/no-xcode.patch
blob: d202b7224744f6f11bbcc90a8d3048deed89a509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/pylib/gyp/xcode_emulation.py
+++ b/pylib/gyp/xcode_emulation.py
@@ -1470,7 +1470,8 @@
     sdk_root = xcode_settings._SdkRoot(configuration)
     if not sdk_root:
       sdk_root = xcode_settings._XcodeSdkPath('')
-    env['SDKROOT'] = sdk_root
+    if sdk_root:
+      env['SDKROOT'] = sdk_root
 
   if not additional_settings:
     additional_settings = {}