[clang] [clang][test][AIX] Set OBJECT_MODE=any for all clang test (PR #209531)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 10:49:40 PDT 2026


================
@@ -503,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"
----------------
hubert-reinterpretcast wrote:

Address issue raised by format checker:
```suggestion
    config.environment["OBJECT_MODE"] = "any"
```

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


More information about the cfe-commits mailing list