rust: Add werror arguments

This commit is contained in:
Dylan Baker 2021-05-17 11:44:25 -07:00
parent 79ed1f985c
commit e2260650a0
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
## Improvements for the Rustc compiler
- Werror now works, this set's `-D warnings`, which will cause rustc to error
for every warning not explicitly disabled

View File

@ -168,3 +168,8 @@ class RustCompiler(Compiler):
for a in super().get_linker_always_args():
args.extend(['-C', f'link-arg={a}'])
return args
def get_werror_args(self) -> T.List[str]:
# Use -D warnings, which makes every warning not explicitly allowed an
# error
return ['-D', 'warnings']