MCPcopy Create free account
hub / github.com/boostorg/build / configure

Function configure

v2/tools/msvc.py:121–144  ·  view source on GitHub ↗
(version=None, options=None)

Source from the content-addressed store, hash-verified

119 configure(version,options)
120
121def configure(version=None, options=None):
122 if version == "all":
123 if options:
124 raise RuntimeError("MSVC toolset configuration: options should be empty when '{}' is specified.".format(version))
125
126 # Configure (i.e. mark as used) all registered versions.
127 all_versions = __versions.all()
128 if not all_versions:
129 if debug():
130 print "notice: [msvc-cfg] Asked to configure all registered" \
131 "msvc toolset versions when there are none currently" \
132 "registered." ;
133 else:
134 for v in all_versions:
135 # Note that there is no need to skip already configured
136 # versions here as this will request configure-really rule
137 # to configure the version using default options which will
138 # in turn cause it to simply do nothing in case the version
139 # has already been configured.
140 configure_really(v)
141 elif version == "default":
142 configure_really(None,options)
143 else:
144 configure_really(version, options)
145
146def extend_conditions(conditions,exts):
147 return [ cond + '/' + ext for cond in conditions for ext in exts ]

Callers 1

initFunction · 0.70

Calls 3

configure_reallyFunction · 0.85
allMethod · 0.80
debugFunction · 0.70

Tested by

no test coverage detected