aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-01-10 11:52:51 +0100
committerlemon <lsof@mailbox.org>2026-01-10 11:52:51 +0100
commit0705d7578247cdc55b3bff9776bfd25661782dbd (patch)
tree65bb1d1a6f8664344e66cc49a651133b079c2b3b
parent828c85c8d3c565f03dd794296305caecc428f467 (diff)
target: accept amd64 as x86_64 synonym
-rwxr-xr-xconfigure2
-rw-r--r--targ.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 5097b39..d9daa20 100755
--- a/configure
+++ b/configure
@@ -45,7 +45,9 @@ host_abi=
echo "host: $host"
case "$host" in
x86_64-*) host_arch=x86_64 ;;
+amd64-*) host_arch=x86_64 ;;
aarch64-*) host_arch=aarch64 ;;
+arm64-*) host_arch=aarch64 ;;
*) host_arch=unk ;;
esac
diff --git a/targ.c b/targ.c
index 4e508e3..510b6e5 100644
--- a/targ.c
+++ b/targ.c
@@ -38,7 +38,7 @@ matchstr(const char **s, const char *pat)
static bool
parsetriple(struct targtriple *trg, const char *str)
{
- if (matchstr(&str, "x86_64-"))
+ if (matchstr(&str, "x86_64-") || matchstr(&str, "amd64-"))
trg->arch = ISx86_64;
else if (matchstr(&str, "aarch64-") || matchstr(&str, "arm64-"))
trg->arch = ISaarch64;