Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 1 | load("@bazel_skylib//lib:selects.bzl", "selects") |
2 | |||||
3 | def _any_of(constraint_values): | ||||
4 | return selects.with_or({ | ||||
5 | tuple(constraint_values): [], | ||||
6 | "//conditions:default": ["@platforms//:incompatible"], | ||||
7 | }) | ||||
8 | |||||
9 | platforms = struct( | ||||
10 | any_of = _any_of, | ||||
11 | ) |