Skip to content

Commit

Permalink
respect CARGOFLAGS in bootstrap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed May 26, 2023
1 parent 0004b3b commit 6674dcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6674dcd

Please sign in to comment.