[clang] 9afcebb - [AIX] change "llvm-ar" to "env OBJECT_MODE=any llvm-ar" in clang/test for AIX OS
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 14 08:50:29 PDT 2023
Author: zhijian
Date: 2023-03-14T11:50:20-04:00
New Revision: 9afcebb2202eb705da1ddbf6b36c1f5629042f6e
URL: https://github.com/llvm/llvm-project/commit/9afcebb2202eb705da1ddbf6b36c1f5629042f6e
DIFF: https://github.com/llvm/llvm-project/commit/9afcebb2202eb705da1ddbf6b36c1f5629042f6e.diff
LOG: [AIX] change "llvm-ar" to "env OBJECT_MODE=any llvm-ar" in clang/test for AIX OS
Summary:
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
Differential Revision: https://reviews.llvm.org/D145600
Added:
Modified:
clang/test/Driver/linker-wrapper-libs.c
clang/test/lit.cfg.py
Removed:
################################################################################
diff --git a/clang/test/Driver/linker-wrapper-libs.c b/clang/test/Driver/linker-wrapper-libs.c
index 65d4c2546ba9c..ee05304b7f1a2 100644
--- a/clang/test/Driver/linker-wrapper-libs.c
+++ b/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)
diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 839960e9633df..e9bfaf2e96774 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -282,6 +282,7 @@ def exclude_unsupported_files_for_aix(dirname):
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
More information about the cfe-commits
mailing list