Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading