Skip to content

Commit 0256ff9

Browse files
authored
[clang][test][AIX] Set OBJECT_MODE=any for all clang test (#209531)
This patch sets OBJECT_MODE=any to have tools able to handle 32-bit or 64-bit objects.
1 parent 2dac2ab commit 0256ff9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

clang/test/lit.cfg.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,8 @@ def user_is_root():
491491
# objects only. In order to not affect most test cases, which expect to support
492492
# 32-bit and 64-bit objects by default, set the environment variable
493493
# "OBJECT_MODE" to "any" by default on AIX OS.
494-
495494
if "system-aix" in config.available_features:
496-
config.substitutions.append(("llvm-nm", "env OBJECT_MODE=any llvm-nm"))
497-
config.substitutions.append(("llvm-ar", "env OBJECT_MODE=any llvm-ar"))
498-
config.substitutions.append(("llvm-ranlib", "env OBJECT_MODE=any llvm-ranlib"))
495+
config.environment["OBJECT_MODE"] = "any"
499496

500497
# It is not realistically possible to account for all options that could
501498
# possibly be present in system and user configuration files, so disable

0 commit comments

Comments
 (0)