diff options
author | Josh Gao <jmgao@google.com> | 2015-11-13 11:07:15 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2015-11-13 11:07:40 -0800 |
commit | dc09de8f919d1a37a3fee1b8368d9d95af9a85e9 (patch) | |
tree | 659af675606ef48dab2abbdc7ca6ba2c181dfdc2 /ndk-gdb.py | |
parent | 0c27cc42b78ec3e6f94ad32446fb81124b0b319c (diff) | |
download | ndk-dc09de8f919d1a37a3fee1b8368d9d95af9a85e9.tar.gz |
ndk-gdb.py: fix changed prebuilt path.
Change-Id: I95bc77792ca6f2a60827aa36758709115da4c7df
Diffstat (limited to 'ndk-gdb.py')
-rwxr-xr-x | ndk-gdb.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ndk-gdb.py b/ndk-gdb.py index fe33879bb..a5cf49f9a 100755 --- a/ndk-gdb.py +++ b/ndk-gdb.py @@ -185,19 +185,7 @@ def ndk_path(): def ndk_bin_path(): ndk = ndk_path() - if sys.platform.startswith("linux"): - platform_name = "linux-x86_64" - elif sys.platform.startswith("darwin"): - platform_name = "darwin-x86_64" - elif sys.platform.startswith("win"): - # Check both x86 and x86_64. - platform_name = "windows-x86_64" - if not os.path.exists(os.path.join(ndk, "prebuilt", platform_name)): - platform_name = "windows" - else: - error("Unknown platform: {}".format(sys.platform)) - - path = os.path.join(ndk, "prebuilt", platform_name, "bin") + path = os.path.join(ndk, "prebuilt", "bin") if not os.path.exists(path): error("Failed to find ndk binary path, should be at '{}'".format(path)) |