]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/bootstrap.py
Rollup merge of #101340 - andrewpollack:fuchsia-zxdb-docs, r=tmandry
[rust.git] / src / bootstrap / bootstrap.py
index fe1b00a90fce25d229dfb62b76bc694ada48a86d..cc08ae5f99f0e80d03c36998ad02df043dcf10d0 100644 (file)
@@ -793,6 +793,8 @@ class RustBuild(object):
 
     def check_vendored_status(self):
         """Check that vendoring is configured properly"""
+        # keep this consistent with the equivalent check in rustbuild:
+        # https://github.com/rust-lang/rust/blob/a8a33cf27166d3eabaffc58ed3799e054af3b0c6/src/bootstrap/lib.rs#L399-L405
         if 'SUDO_USER' in os.environ and not self.use_vendored_sources:
             if os.getuid() == 0:
                 self.use_vendored_sources = True