MCPcopy
hub / github.com/google/clusterfuzz / get_default_tool_path

Function get_default_tool_path

src/clusterfuzz/_internal/system/environment.py:273–286  ·  view source on GitHub ↗

Get the default tool for this platform (from scripts/ dir).

(tool_name)

Source from the content-addressed store, hash-verified

271
272
273def get_default_tool_path(tool_name):
274 """Get the default tool for this platform (from scripts/ dir)."""
275 if is_android():
276 # For android devices, we do symbolization on the host machine, which is
277 # linux. So, we use the linux version of llvm-symbolizer.
278 platform_override = 'linux'
279 else:
280 # No override needed, use default.
281 platform_override = None
282
283 tool_filename = get_executable_filename(tool_name)
284 tool_path = os.path.join(
285 get_platform_resources_directory(platform_override), tool_filename)
286 return tool_path
287
288
289def get_environment_settings_as_string():

Callers 1

get_llvm_symbolizer_pathFunction · 0.85

Calls 4

is_androidFunction · 0.85
get_executable_filenameFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected