mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Turn on unused-extern-crates warning.
This commit is contained in:
parent
41c293293b
commit
4bdc895d95
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,8 @@ class MachCommands(CommandBase):
|
|||
if not (self.config["build"]["ccache"] == ""):
|
||||
env['CCACHE'] = self.config["build"]["ccache"]
|
||||
|
||||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -W unused-extern-crates"
|
||||
|
||||
status = call(
|
||||
["cargo", "build"] + opts,
|
||||
env=env, cwd=self.servo_crate(), verbose=verbose)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue