From 6674dcda7a1da4c66e0aa0cfc67b27e42f4ebb34 Mon Sep 17 00:00:00 2001 From: jyn Date: Sun, 21 May 2023 16:34:19 -0500 Subject: [PATCH] respect CARGOFLAGS in bootstrap.py --- src/bootstrap/bootstrap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 50ace987193a2..d75ffd4ac22b6 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -917,6 +917,10 @@ def build_bootstrap(self, color, verbose_count): args.append("--color=always") elif color == "never": args.append("--color=never") + try: + args += env["CARGOFLAGS"].split() + except KeyError: + pass # Run this from the source directory so cargo finds .cargo/config run(args, env=env, verbose=self.verbose, cwd=self.rust_root)