mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Add RUSTC env to clippy command (#31694)
* python: add RUSTC env to clippy command * fix: pass env explicitly
This commit is contained in:
parent
3fdbde94cf
commit
cb3ae70340
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ class MachCommands(CommandBase):
|
||||||
|
|
||||||
self.ensure_bootstrapped()
|
self.ensure_bootstrapped()
|
||||||
self.ensure_clobbered()
|
self.ensure_clobbered()
|
||||||
return self.run_cargo_build_like_command("clippy", params, **kwargs)
|
env = self.build_env()
|
||||||
|
env['RUSTC'] = 'rustc'
|
||||||
|
return self.run_cargo_build_like_command("clippy", params, env=env, **kwargs)
|
||||||
|
|
||||||
@Command('grep',
|
@Command('grep',
|
||||||
description='`git grep` for selected directories.',
|
description='`git grep` for selected directories.',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue