Skip to content

Commit 406e69c

Browse files
committed
Don't add feature when zdump isn't present at all.
1 parent 75d64e4 commit 406e69c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/utils/libcxx/test/features.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ def _mingwSupportsModules(cfg):
359359
# this zone, which would be out of range for 32 bit.
360360
Feature(
361361
name="zdump-time_t-32bit",
362-
when=lambda cfg: runScriptExitCode(
362+
when=lambda cfg: BooleanExpression.evaluate(
363+
"!has-no-zdump", cfg.available_features
364+
)
365+
and runScriptExitCode(
363366
cfg, ["zdump -V -c1800,2100 Africa/Addis_Ababa | grep -q 1869"]
364367
)
365368
!= 0,

0 commit comments

Comments
 (0)