[Build] allow to generate symbols for a subset of binaries (#37120)

This would be needed to reduce overall build times in scenarios when
generating symbols for all binaries is too expensive and/or not needed.

At the same time, introduce tests around the logic that handles symbols.

Addresses rdar://76865276
This commit is contained in:
Eric Miotto
2021-05-13 07:32:41 -07:00
committed by GitHub
8 changed files with 288 additions and 22 deletions

View File

@@ -814,6 +814,12 @@ class BuildScriptInvocation(object):
' '.join(args.llvm_ninja_targets_for_cross_compile_hosts)
]
if args.darwin_symroot_path_filters:
impl_args += [
"--darwin_symroot_path_filters=%s" %
' '.join(args.darwin_symroot_path_filters)
]
# Compute the set of host-specific variables, which we pass through to
# the build script via environment variables.
host_specific_variables = self.compute_host_specific_variables()