mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
Enable use of RUST_LOG with mach run --android.
This commit is contained in:
parent
a6dbfdd29f
commit
f7516f57a7
7 changed files with 31 additions and 15 deletions
|
@ -99,6 +99,9 @@ class PostBuildCommands(CommandBase):
|
|||
]
|
||||
json_params = shell_quote(json.dumps(params))
|
||||
extra = "-e servoargs " + json_params
|
||||
rust_log = env.get("RUST_LOG", None)
|
||||
if rust_log:
|
||||
extra += " -e servolog " + rust_log
|
||||
script += [
|
||||
"am start " + extra + " com.mozilla.servo/com.mozilla.servo.MainActivity",
|
||||
"sleep 0.5",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue