DiggerLin created this revision. DiggerLin added reviewers: jhenderson, Jake-Egan, daltenty. Herald added a project: All. DiggerLin requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
In patch https://reviews.llvm.org/D127864. we add a new option -X for AIX OS, and default value is -X32. In order not effect the test cases in clang/test we need to change "llvm-ar" to "env OBJECT_MODE=any llvm-ar" in clang/test for AIX OS Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D145600 Files: clang/test/Driver/linker-wrapper-libs.c clang/test/lit.cfg.py Index: clang/test/lit.cfg.py =================================================================== --- clang/test/lit.cfg.py +++ clang/test/lit.cfg.py @@ -292,6 +292,7 @@ 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')) # It is not realistically possible to account for all options that could # possibly be present in system and user configuration files, so disable Index: clang/test/Driver/linker-wrapper-libs.c =================================================================== --- clang/test/Driver/linker-wrapper-libs.c +++ clang/test/Driver/linker-wrapper-libs.c @@ -2,8 +2,6 @@ // REQUIRES: nvptx-registered-target // REQUIRES: amdgpu-registered-target -// REQUIRES: system-linux - // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.elf.o #if defined(RESOLVES)
Index: clang/test/lit.cfg.py =================================================================== --- clang/test/lit.cfg.py +++ clang/test/lit.cfg.py @@ -292,6 +292,7 @@ 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')) # It is not realistically possible to account for all options that could # possibly be present in system and user configuration files, so disable Index: clang/test/Driver/linker-wrapper-libs.c =================================================================== --- clang/test/Driver/linker-wrapper-libs.c +++ clang/test/Driver/linker-wrapper-libs.c @@ -2,8 +2,6 @@ // REQUIRES: nvptx-registered-target // REQUIRES: amdgpu-registered-target -// REQUIRES: system-linux - // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.elf.o #if defined(RESOLVES)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits