bootstrap.py: build bootstrap binary with --features=tracing if BOOTSTRAP_TRACING env var is set

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-01-12 11:43:06 +08:00
parent 1307c950c4
commit a4b9aa3e6e

View file

@ -1129,6 +1129,10 @@ class RustBuild(object):
"-Zroot-dir=" + self.rust_root,
]
args.extend("--verbose" for _ in range(self.verbose))
if "BOOTSTRAP_TRACING" in env:
args.append("--features=tracing")
if self.use_locked_deps:
args.append("--locked")
if self.use_vendored_sources: