Skip to content

Instantly share code, notes, and snippets.

@denghongcai
Created February 2, 2018 02:25
Show Gist options
  • Save denghongcai/bf617b2ec45ce798feb7dd90f8147a31 to your computer and use it in GitHub Desktop.
Save denghongcai/bf617b2ec45ce798feb7dd90f8147a31 to your computer and use it in GitHub Desktop.
osxcross Node.js
Node Version 8.9.4
diff --git a/tools/gyp/pylib/gyp/common.py b/tools/gyp/pylib/gyp/common.py
index a1e1db5f..92ecb4b9 100644
--- a/tools/gyp/pylib/gyp/common.py
+++ b/tools/gyp/pylib/gyp/common.py
@@ -414,6 +414,7 @@ def GetFlavor(params):
'win32': 'win',
'darwin': 'mac',
}
+ return 'mac'
if 'flavor' in params:
return params['flavor']
diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
index 667c5369..f9983d41 100644
--- a/tools/gyp/pylib/gyp/xcode_emulation.py
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py
@@ -507,8 +507,8 @@ class XcodeSettings(object):
def _XcodePlatformPath(self, configname=None):
sdk_root = self._SdkRoot(configname)
if sdk_root not in XcodeSettings._platform_path_cache:
- platform_path = self._GetSdkVersionInfoItem(sdk_root,
- '--show-sdk-platform-path')
+ platform_path = '/home/admin/osxcross' # self._GetSdkVersionInfoItem(sdk_root,
+ # '--show-sdk-platform-path')
XcodeSettings._platform_path_cache[sdk_root] = platform_path
return XcodeSettings._platform_path_cache[sdk_root]
@@ -1401,7 +1401,8 @@ def XcodeVersion():
if len(version_list) < 2:
raise GypError("xcodebuild returned unexpected results")
except:
- version = CLTVersion()
+ # version = CLTVersion()
+ version = '7.3.1'
if version:
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
else:
GYP_DEFINES="host_os=linux" CC=o64-clang CXX=o64-clang++-libc++ CXXFLAGS=-std=c++11 ./configure --without-dtrace --without-intl --without-snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment