aboutsummaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-05-26 15:06:11 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-05-26 15:06:58 -0700
commit7adff65d4abf4b743e3834505cdb1a580b4d966e (patch)
tree64936d3c95b23f57ea943ac71dfa526d2599b954 /cross-project-tests
parent1610627d2b42c0daf8cc20649c50ddad222f001b (diff)
downloadllvm-7adff65d4abf4b743e3834505cdb1a580b4d966e.zip
llvm-7adff65d4abf4b743e3834505cdb1a580b4d966e.tar.gz
llvm-7adff65d4abf4b743e3834505cdb1a580b4d966e.tar.bz2
[Dexter] Don't hardcode x86_64 as the default architecture
Use platform.machine() as the default architecture instead of hardcoding it to x86_64.
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
index bee62c7..6282f38 100644
--- a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
@@ -9,6 +9,7 @@
from collections import OrderedDict
import os
import pickle
+import platform
import subprocess
import sys
from tempfile import NamedTemporaryFile
@@ -97,7 +98,7 @@ def add_debugger_tool_arguments(parser, context, defaults):
parser.add_argument(
"--show-debugger", action="store_true", default=None, help="show the debugger"
)
- defaults.arch = "x86_64"
+ defaults.arch = platform.machine()
parser.add_argument(
"--arch",
type=str,