[clang] [llvm] [PowerPC][clang] Fix triple constructor ambiguity causing "unknown" target triple on AIX (PR #147488)

Tony Varghese via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 08:52:57 PDT 2025


================
@@ -0,0 +1,15 @@
+// Test for the Triple constructor ambiguity fix on AIX
+// This test verifies that the default target triple is correctly resolved
+// and doesn't fall back to "unknown" due to constructor ambiguity.
+
+// REQUIRES: system-aix
+// RUN: %clang -v %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET
----------------
tonykuttai wrote:

`clang -v` sends its verbose output (like "Target: powerpc-ibm-aix7.3.0.0") to `stderr`, not `stdout`. Without `2>&1`, `FileCheck` only sees `stdout` (which is empty), so it fails with `"FileCheck error: '<stdin>' is empty."`

https://github.com/llvm/llvm-project/pull/147488


More information about the llvm-commits mailing list