https://github.com/kkwli updated https://github.com/llvm/llvm-project/pull/209531
>From 6a0daabe8b33433da709909769b21897d5cc46a9 Mon Sep 17 00:00:00 2001 From: Kelvin Li <[email protected]> Date: Tue, 30 Jun 2026 19:15:31 -0400 Subject: [PATCH 1/2] [clang][test][AIX] Set OBJECT_MODE=any for all clang test This patch sets OBJECT_MODE=any to have tools able to handle 32-bit or 64-bit objects. --- clang/test/lit.cfg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py index f7b3a77266cb8..bfa9d704d1581 100644 --- a/clang/test/lit.cfg.py +++ b/clang/test/lit.cfg.py @@ -492,10 +492,10 @@ def user_is_root(): # 32-bit and 64-bit objects by default, set the environment variable # "OBJECT_MODE" to "any" by default on AIX OS. +# Tools that support OBJECT_MODE default to 32-bit on AIX. Set +# OBJECT_MODE=any to handle both 32-bit and 64-bit objects. if "system-aix" in config.available_features: - config.substitutions.append(("llvm-nm", "env OBJECT_MODE=any llvm-nm")) - config.substitutions.append(("llvm-ar", "env OBJECT_MODE=any llvm-ar")) - config.substitutions.append(("llvm-ranlib", "env OBJECT_MODE=any llvm-ranlib")) + config.environment["OBJECT_MODE"] = "any" # It is not realistically possible to account for all options that could # possibly be present in system and user configuration files, so disable >From 5225fda9519fcd65102670a91eacc41e05273e23 Mon Sep 17 00:00:00 2001 From: Kelvin Li <[email protected]> Date: Tue, 14 Jul 2026 13:50:40 -0400 Subject: [PATCH 2/2] Fix format --- clang/test/lit.cfg.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py index bfa9d704d1581..8a5a011af9340 100644 --- a/clang/test/lit.cfg.py +++ b/clang/test/lit.cfg.py @@ -491,11 +491,8 @@ def user_is_root(): # objects only. In order to not affect most test cases, which expect to support # 32-bit and 64-bit objects by default, set the environment variable # "OBJECT_MODE" to "any" by default on AIX OS. - -# Tools that support OBJECT_MODE default to 32-bit on AIX. Set -# OBJECT_MODE=any to handle both 32-bit and 64-bit objects. if "system-aix" in config.available_features: - config.environment["OBJECT_MODE"] = "any" + config.environment["OBJECT_MODE"] = "any" # It is not realistically possible to account for all options that could # possibly be present in system and user configuration files, so disable _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
