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

Function find_target

v2/build_system.py:149–164  ·  view source on GitHub ↗
(target_id)

Source from the content-addressed store, hash-verified

147# project-targets instance.
148#
149def find_target(target_id):
150
151 projects = get_manager().projects()
152 m = _target_id_split.match(target_id)
153 if m:
154 pm = projects.find(m.group(1), ".")
155 else:
156 pm = projects.find(target_id, ".")
157
158 if pm:
159 result = projects.target(pm)
160
161 if m:
162 result = result.find(m.group(2))
163
164 return result
165
166def initialize_config_module(module_name, location=None):
167

Callers 1

main_realFunction · 0.85

Calls 3

get_managerFunction · 0.90
projectsMethod · 0.80
matchMethod · 0.80

Tested by

no test coverage detected