[clang] [clang] Disable gch-probe.c on AIX as `-gmodules` is not supported there yet. (PR #78513)

Michael Spencer via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 14:28:53 PST 2024


https://github.com/Bigcheese created https://github.com/llvm/llvm-project/pull/78513

Followup fix for https://github.com/llvm/llvm-project/pull/77711

>From a12b3ab8663c591f66848a7e46620a79583f5045 Mon Sep 17 00:00:00 2001
From: Michael Spencer <bigcheesegs at gmail.com>
Date: Wed, 17 Jan 2024 14:27:03 -0800
Subject: [PATCH] [clang] Disable gch-probe.c on AIX as `-gmodules` is not
 supported there yet.

Followup fix for https://github.com/llvm/llvm-project/pull/77711
---
 clang/test/PCH/gch-probe.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/test/PCH/gch-probe.c b/clang/test/PCH/gch-probe.c
index 0905c9baebdae04..370abd26d251749 100644
--- a/clang/test/PCH/gch-probe.c
+++ b/clang/test/PCH/gch-probe.c
@@ -1,3 +1,7 @@
+// Unsupported on AIX because we don't support the requisite "__clangast"
+// section in XCOFF yet.
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
+
 // For GCC compatibility, clang should probe also with the .gch extension.
 // RUN: %clang -x c-header -c %s -o %t.h.gch
 // RUN: %clang -fsyntax-only -include %t.h %s



More information about the cfe-commits mailing list