diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -365,6 +365,10 @@ if not config.target_triple.startswith(("nvptx", "xcore")): config.available_features.add('object-emission') +# Allow checking for specific details in the host triple +if config.host_triple: + config.available_features.add('host=%s' % config.host_triple) + if config.have_llvm_driver: config.available_features.add('llvm-driver') diff --git a/llvm/test/tools/llvm-config/system-libs.test b/llvm/test/tools/llvm-config/system-libs.test --- a/llvm/test/tools/llvm-config/system-libs.test +++ b/llvm/test/tools/llvm-config/system-libs.test @@ -1,6 +1,6 @@ RUN: llvm-config --link-static --system-libs Support 2>&1 | FileCheck %s REQUIRES: static-libs -UNSUPPORTED: system-windows +UNSUPPORTED: host={{.*-windows-msvc}} CHECK: -l CHECK-NOT: error CHECK-NOT: warning diff --git a/llvm/test/tools/llvm-config/system-libs.windows.test b/llvm/test/tools/llvm-config/system-libs.windows.test --- a/llvm/test/tools/llvm-config/system-libs.windows.test +++ b/llvm/test/tools/llvm-config/system-libs.windows.test @@ -1,6 +1,6 @@ RUN: llvm-config --link-static --system-libs Support 2>&1 | FileCheck %s REQUIRES: static-libs -REQUIRES: system-windows +REQUIRES: host={{.*-windows-msvc}} CHECK-NOT: -l CHECK: psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib CHECK-NOT: error