[clang] f2b150b - Summary:

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 22 13:29:41 PDT 2023


Author: zhijian
Date: 2023-08-22T16:29:22-04:00
New Revision: f2b150b4501ff8978ce19b0727225a6817be1dc7

URL: https://github.com/llvm/llvm-project/commit/f2b150b4501ff8978ce19b0727225a6817be1dc7
DIFF: https://github.com/llvm/llvm-project/commit/f2b150b4501ff8978ce19b0727225a6817be1dc7.diff

LOG: Summary:

Fixed a clang: error: OBJECT_MODE setting any is not recognized and is not a valid setting
in https://lab.llvm.org/buildbot/#/builders/214/builds/9125/steps/6/logs/FAIL__Clang__dwarf-version_c

The error is caused by the modification of clang/test/lit.cfg.py of the commit of https://reviews.llvm.org/D142660

Added: 
    

Modified: 
    clang/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 815ea219aaa81e..60843ef8a14204 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -388,7 +388,9 @@ def exclude_unsupported_files_for_aix(dirname):
 # "OBJECT_MODE" to "any" by default on AIX OS.
 
 if "system-aix" in config.available_features:
-   config.environment["OBJECT_MODE"] = "any"
+   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"))
 
 # It is not realistically possible to account for all options that could
 # possibly be present in system and user configuration files, so disable


        


More information about the cfe-commits mailing list