Skip to content

Commit

Permalink
mach run --debug: Cleanup: Use nicer syntax in rust-gdb/rust-lldb check
Browse files Browse the repository at this point in the history
Follow-up on f3cd5d2 : after actually
reading a Python tutorial, I realised this can be handled in a more
elegant fashion :-)
  • Loading branch information
antrik committed May 4, 2016
1 parent a868bb2 commit 1506655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/servo/post_build_commands.py
Expand Up @@ -118,9 +118,10 @@ def run(self, params, release=False, dev=False, android=None, debug=False, debug
rustCommand = 'rust-' + debugger
try:
subprocess.check_call([rustCommand, '--version'], env=env, stdout=open(os.devnull, 'w'))
command = rustCommand
except (OSError, subprocess.CalledProcessError):
pass
else:
command = rustCommand

# Prepend the debugger args.
args = ([command] + self.debuggerInfo.args +
Expand Down

0 comments on commit 1506655

Please sign in to comment.