Skip to content

Commit 6674dcd

Browse files
committed
respect CARGOFLAGS in bootstrap.py
1 parent 0004b3b commit 6674dcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/bootstrap/bootstrap.py

+4
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ def build_bootstrap(self, color, verbose_count):
917917
args.append("--color=always")
918918
elif color == "never":
919919
args.append("--color=never")
920+
try:
921+
args += env["CARGOFLAGS"].split()
922+
except KeyError:
923+
pass
920924

921925
# Run this from the source directory so cargo finds .cargo/config
922926
run(args, env=env, verbose=self.verbose, cwd=self.rust_root)

0 commit comments

Comments
 (0)