Source release 15.2.0
This commit is contained in:
13
third_party/gyp/xcode_emulation.py
vendored
13
third_party/gyp/xcode_emulation.py
vendored
@@ -926,7 +926,7 @@ class XcodeSettings(object):
|
||||
# extensions and provide loader and main function.
|
||||
# These flags reflect the compilation options used by xcode to compile
|
||||
# extensions.
|
||||
if XcodeVersion() < '0900':
|
||||
if XcodeVersion()[0] < '0900':
|
||||
ldflags.append('-lpkstart')
|
||||
ldflags.append(sdk_root +
|
||||
'/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit')
|
||||
@@ -1133,8 +1133,9 @@ class XcodeSettings(object):
|
||||
output = subprocess.check_output(
|
||||
['security', 'find-identity', '-p', 'codesigning', '-v'])
|
||||
for line in output.splitlines():
|
||||
if identity in line:
|
||||
fingerprint = line.split()[1]
|
||||
line_decoded = line.decode('utf-8')
|
||||
if identity in line_decoded:
|
||||
fingerprint = line_decoded.split()[1]
|
||||
cache = XcodeSettings._codesigning_key_cache
|
||||
assert identity not in cache or fingerprint == cache[identity], (
|
||||
"Multiple codesigning fingerprints for identity: %s" % identity)
|
||||
@@ -1450,9 +1451,9 @@ def GetStdout(cmdlist):
|
||||
job = subprocess.Popen(cmdlist, stdout=subprocess.PIPE)
|
||||
out = job.communicate()[0]
|
||||
if job.returncode != 0:
|
||||
sys.stderr.write(out + '\n')
|
||||
sys.stderr.write(out + b'\n')
|
||||
raise GypError('Error %d running %s' % (job.returncode, cmdlist[0]))
|
||||
return out.rstrip('\n')
|
||||
return out.rstrip(b'\n').decode('utf-8')
|
||||
|
||||
|
||||
def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
|
||||
@@ -1660,7 +1661,7 @@ def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
|
||||
install_name_base = xcode_settings.GetInstallNameBase()
|
||||
if install_name_base:
|
||||
env['DYLIB_INSTALL_NAME_BASE'] = install_name_base
|
||||
if XcodeVersion() >= '0500' and not env.get('SDKROOT'):
|
||||
if XcodeVersion()[0] >= '0500' and not env.get('SDKROOT'):
|
||||
sdk_root = xcode_settings._SdkRoot(configuration)
|
||||
if not sdk_root:
|
||||
sdk_root = xcode_settings._XcodeSdkPath('')
|
||||
|
||||
Reference in New Issue
Block a user