Skip to content

Commit 09ece8c

Browse files
committed
Add PLATFORM key to lit.cfg
This is less cumbersome to use than combinations of OS= or somesuch when XFAIL-ing tests that only fail on a particular platform or using objc_interop to mean Apple platforms.
1 parent 55f0791 commit 09ece8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/lit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ for target in config.targets_to_build.split():
430430
# Add the run target CPU, OS, and pointer size as features.
431431
config.available_features.add("CPU=" + run_cpu)
432432
config.available_features.add("OS=" + run_os)
433+
config.available_features.add("PLATFORM=" + platform.system())
433434
config.available_features.add("PTRSIZE=" + run_ptrsize)
434435

435436
if run_cpu == "i386" or run_cpu == "x86_64":

0 commit comments

Comments
 (0)