Fix gm.py on Windows
Bug: v8:12131 Change-Id: Id3800e20b136c9fc16770e8a5d5c95e4674c0069 No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3119380 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/main@{#76587}
This commit is contained in:
parent
4c4366e748
commit
db16496552
@ -28,6 +28,7 @@ not contain spaces.
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@ -250,9 +251,7 @@ def _Notify(summary, body):
|
|||||||
print("{} - {}".format(summary, body))
|
print("{} - {}".format(summary, body))
|
||||||
|
|
||||||
def _GetMachine():
|
def _GetMachine():
|
||||||
# Once we migrate to Python3, this can use os.uname().machine.
|
return platform.machine()
|
||||||
# The index-based access is compatible with all Python versions.
|
|
||||||
return os.uname()[4]
|
|
||||||
|
|
||||||
def GetPath(arch, mode):
|
def GetPath(arch, mode):
|
||||||
subdir = "%s.%s" % (arch, mode)
|
subdir = "%s.%s" % (arch, mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user