diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-03-08 12:45:50 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-03-08 12:45:50 +0000 |
| commit | 38e6bcc14b6b0bc56f21b224668d69204c5ae812 (patch) | |
| tree | 22d8c6c9543a1cec2102de0f009d4e9e8cc6252b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | a3c43cfd63b3d4f925dff0e51b951223a0f0cfa0 (diff) | |
gn build: Unbreak get.py and gn.py on Windows
`os.uname()` doesn't exist on Windows, so use `platform.machine()` which
returns `os.uname()[4]` on non-Win and (on 64-bit systems) "AMD64" on Windows.
Also use `sys.platform` instead of `platform` to check for Windows-ness for the
file extension in gn.py (get.py got this right).
Differential Revision: https://reviews.llvm.org/D59115
llvm-svn: 355693
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
