Skip to content

Commit df15ed4

Browse files
committed
check config.available_features instead
1 parent 7111f28 commit df15ed4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import sys
2-
31
# clang-repl is not supported on AIX and zOS
4-
if "host-supports-jit" not in config.available_features or sys.platform == "aix" or sys.platform == "zos":
2+
unsupported_platforms = [ "system-aix", "system-zos" ]
3+
4+
if "host-supports-jit" not in config.available_features or \
5+
any(up in config.available_features for up in unsupported_platforms):
56
config.unsupported = True

0 commit comments

Comments
 (0)