From 59a0782bbc47fb7ea17c10d05513662b80606bd0 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 19 Oct 2026 17:05:06 -0700 Subject: [PATCH] add x86 and x86_64 as host options --- test/lit.cfg.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 75cf401df..a9b2eb7ca 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -434,8 +434,13 @@ def setDeviceFeatures(config, device, compiler): # Expose the host CPU architecture so tests can gate on it (e.g. XFAIL a test # only when running on an ARM host). -if platform.machine().lower() in ("arm64", "aarch64"): +host_machine = platform.machine().lower() +if host_machine in ("arm64", "aarch64"): config.available_features.add("host-arm64") +elif host_machine in ("x86_64", "amd64", "x64"): + config.available_features.add("host-x86_64") +elif host_machine in ("x86", "i386", "i486", "i586", "i686"): + config.available_features.add("host-x86") if os.path.exists(config.goldenimage_dir): config.substitutions.append(("%goldenimage_dir", config.goldenimage_dir))