diff --git a/clang/test/Driver/linker-wrapper-libs.c b/clang/test/Driver/linker-wrapper-libs.c --- 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 --- a/clang/test/lit.cfg.py +++ b/clang/test/lit.cfg.py @@ -282,6 +282,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