mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
auto merge of #4286 : andreastt/servo/ato/concat_error_on_system_rust, r=metajack
Since default argument to params is None, concatenating it with a list will raise an error. This behaviour prevents `./mach rustc` to be called when system-rust is defined in .servobuild. Currently it will only work when followed by an argument, i.e. `./mach rustc -arg`. Testing this patch: `./mach rustc` should not raise an error.
This commit is contained in:
commit
35c13f07bf
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ class MachCommands(CommandBase):
|
|||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to rustc")
|
||||
def rustc(self, params):
|
||||
if params is None:
|
||||
params = []
|
||||
return subprocess.call(["rustc"] + params, env=self.build_env())
|
||||
|
||||
@Command('rust-root',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue