[PATCH] D145600: [AIX] change "llvm-ar" to "env OBJECT_MODE=any llvm-ar" in clang/test for AIX OS
Digger Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 8 10:19:06 PST 2023
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145600.503435.patch
Type: text/x-patch
Size: 961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230308/c3538a2f/attachment.bin>
More information about the cfe-commits
mailing list