MCPcopy Index your code
hub / github.com/nodejs/node / ActiveArchs

Method ActiveArchs

tools/gyp/pylib/gyp/xcode_emulation.py:82–93  ·  view source on GitHub ↗

Expands variables references in ARCHS, and filter by VALID_ARCHS if it is defined (if not set, Xcode accept any value in ARCHS, otherwise, only values present in VALID_ARCHS are kept).

(self, archs, valid_archs, sdkroot)

Source from the content-addressed store, hash-verified

80 return expanded_archs
81
82 def ActiveArchs(self, archs, valid_archs, sdkroot):
83 """Expands variables references in ARCHS, and filter by VALID_ARCHS if it
84 is defined (if not set, Xcode accept any value in ARCHS, otherwise, only
85 values present in VALID_ARCHS are kept)."""
86 expanded_archs = self._ExpandArchs(archs or self._default, sdkroot or "")
87 if valid_archs:
88 filtered_archs = []
89 for arch in expanded_archs:
90 if arch in valid_archs:
91 filtered_archs.append(arch)
92 expanded_archs = filtered_archs
93 return expanded_archs
94
95
96def GetXcodeArchsDefault():

Callers 1

GetActiveArchsMethod · 0.80

Calls 2

_ExpandArchsMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected