diff --git a/clang/test/Interpreter/const.cpp b/clang/test/Interpreter/const.cpp index 4b6ce65e3643e..86358c1a54fbd 100644 --- a/clang/test/Interpreter/const.cpp +++ b/clang/test/Interpreter/const.cpp @@ -1,6 +1,6 @@ // UNSUPPORTED: system-aix // see https://github.com/llvm/llvm-project/issues/68092 -// XFAIL: system-windows +// XFAIL: host={{.*}}-windows-msvc // RUN: cat %s | clang-repl | FileCheck %s // RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index ab245b71cdd16..022d1aedbdcdb 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -477,10 +477,6 @@ def have_cxx_shared_library(): 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/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py index 16cc2968034bf..79094b839e772 100644 --- a/llvm/utils/lit/lit/llvm/config.py +++ b/llvm/utils/lit/lit/llvm/config.py @@ -97,6 +97,7 @@ def __init__(self, lit_config, config): # part of the standard header. But currently they aren't) host_triple = getattr(config, "host_triple", None) target_triple = getattr(config, "target_triple", None) + features.add("host=%s" % host_triple) features.add("target=%s" % target_triple) if host_triple and host_triple == target_triple: features.add("native")