Source release 17.1.0
This commit is contained in:
4
third_party/gyp/common.py
vendored
4
third_party/gyp/common.py
vendored
@@ -4,7 +4,7 @@
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import errno
|
||||
import filecmp
|
||||
import os.path
|
||||
@@ -494,7 +494,7 @@ def uniquer(seq, idfun=None):
|
||||
|
||||
|
||||
# Based on http://code.activestate.com/recipes/576694/.
|
||||
class OrderedSet(collections.MutableSet):
|
||||
class OrderedSet(collections.abc.MutableSet):
|
||||
def __init__(self, iterable=None):
|
||||
self.end = end = []
|
||||
end += [None, end, end] # sentinel node for doubly linked list
|
||||
|
||||
4
third_party/gyp/input.py
vendored
4
third_party/gyp/input.py
vendored
@@ -102,13 +102,11 @@ def IsPathSection(section):
|
||||
base_non_configuration_keys = [
|
||||
# Sections that must exist inside targets and not configurations.
|
||||
'actions',
|
||||
'all_dependent_settings',
|
||||
'configurations',
|
||||
'copies',
|
||||
'default_configuration',
|
||||
'dependencies',
|
||||
'dependencies_original',
|
||||
'direct_dependent_settings',
|
||||
'libraries',
|
||||
'postbuilds',
|
||||
'product_dir',
|
||||
@@ -1183,7 +1181,7 @@ def LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key):
|
||||
if variable_name in variables:
|
||||
# If the variable is already set, don't set it.
|
||||
continue
|
||||
if the_dict_key is 'variables' and variable_name in the_dict:
|
||||
if the_dict_key == 'variables' and variable_name in the_dict:
|
||||
# If the variable is set without a % in the_dict, and the_dict is a
|
||||
# variables dict (making |variables| a varaibles sub-dict of a
|
||||
# variables dict), use the_dict's definition.
|
||||
|
||||
2
third_party/gyp/xcode_emulation.py
vendored
2
third_party/gyp/xcode_emulation.py
vendored
@@ -726,8 +726,6 @@ class XcodeSettings(object):
|
||||
def _AddObjectiveCARCFlags(self, flags):
|
||||
if self._Test('CLANG_ENABLE_OBJC_ARC', 'YES', default='NO'):
|
||||
flags.append('-fobjc-arc')
|
||||
if self._Test('CLANG_ENABLE_OBJC_WEAK', 'YES', default='NO'):
|
||||
flags.append('-fobjc-weak')
|
||||
|
||||
def _AddObjectiveCMissingPropertySynthesisFlags(self, flags):
|
||||
if self._Test('CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS',
|
||||
|
||||
Reference in New Issue
Block a user