[llvm] [cmake] Sync Haiku cases in config.guess with downstream (PR #228784)

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 16:19:18 PDT 2026


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/228784

Add the ppc case and replace the x86_64-specific case with the
downstream wildcard, so that other Haiku architectures (e.g. aarch64,
riscv64) are recognized. x86_64 still maps to x86_64-unknown-haiku.

>From a103006684e7935e321f41b0c2bd7cc8ea4b7522 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sat, 3 Oct 2026 19:11:47 -0400
Subject: [PATCH] [cmake] Sync Haiku cases in config.guess with downstream

Add the ppc case and replace the x86_64-specific case with the
downstream wildcard, so that other Haiku architectures (e.g. aarch64,
riscv64) are recognized. x86_64 still maps to x86_64-unknown-haiku.
---
 llvm/cmake/config.guess | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/llvm/cmake/config.guess b/llvm/cmake/config.guess
index 2c22d6d810c01..8934c0fa6befc 100644
--- a/llvm/cmake/config.guess
+++ b/llvm/cmake/config.guess
@@ -1256,8 +1256,11 @@ EOF
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
 	echo i586-pc-haiku
 	exit ;;
-    x86_64:Haiku:*:*) # Haiku running on x86_64.
-	echo x86_64-unknown-haiku
+    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
+	echo powerpc-apple-haiku
+	exit ;;
+    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
+	echo ${UNAME_MACHINE}-unknown-haiku
 	exit ;;
     SX-4:SUPER-UX:*:*)
 	echo sx4-nec-superux${UNAME_RELEASE}



More information about the llvm-commits mailing list