mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Auto merge of #11013 - antrik:rust-gdb-cleanup, r=Ms2ger
mach run --debug: Use nicer syntax in rust-gdb/rust-lldb check After actually reading a Python tutorial, I realised this can be handled in a more elegant fashion :-) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11013) <!-- Reviewable:end -->
This commit is contained in:
commit
283eb41296
1 changed files with 2 additions and 1 deletions
|
@ -118,9 +118,10 @@ class PostBuildCommands(CommandBase):
|
||||||
rustCommand = 'rust-' + debugger
|
rustCommand = 'rust-' + debugger
|
||||||
try:
|
try:
|
||||||
subprocess.check_call([rustCommand, '--version'], env=env, stdout=open(os.devnull, 'w'))
|
subprocess.check_call([rustCommand, '--version'], env=env, stdout=open(os.devnull, 'w'))
|
||||||
command = rustCommand
|
|
||||||
except (OSError, subprocess.CalledProcessError):
|
except (OSError, subprocess.CalledProcessError):
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
command = rustCommand
|
||||||
|
|
||||||
# Prepend the debugger args.
|
# Prepend the debugger args.
|
||||||
args = ([command] + self.debuggerInfo.args +
|
args = ([command] + self.debuggerInfo.args +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue