rust: Add werror arguments
This commit is contained in:
parent
79ed1f985c
commit
e2260650a0
|
@ -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
|
|
@ -168,3 +168,8 @@ class RustCompiler(Compiler):
|
||||||
for a in super().get_linker_always_args():
|
for a in super().get_linker_always_args():
|
||||||
args.extend(['-C', f'link-arg={a}'])
|
args.extend(['-C', f'link-arg={a}'])
|
||||||
return args
|
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']
|
||||||
|
|
Loading…
Reference in New Issue