Skip to content

Commit

Permalink
Turn on unused-extern-crates warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
zwn committed Apr 22, 2016
1 parent 41c2932 commit 4bdc895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/servo/build_commands.py
Expand Up @@ -230,6 +230,8 @@ def build(self, target=None, release=False, dev=False, jobs=None,
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)
Expand Down

0 comments on commit 4bdc895

Please sign in to comment.