diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-10-15 13:13:16 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-10-18 22:31:42 +0200 |
commit | 4f927393352b16b4ed3544d743734e4959973c0c (patch) | |
tree | 7903149577daa784cdb78f878f567bdba2168d11 /bazel | |
parent | 1ab9344e099e33c8341519317adc068b9ae39724 (diff) | |
download | jazzer-api-4f927393352b16b4ed3544d743734e4959973c0c.tar.gz |
Use target_compatible_with instead of filters
Diffstat (limited to 'bazel')
-rw-r--r-- | bazel/compat.bzl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bazel/compat.bzl b/bazel/compat.bzl new file mode 100644 index 00000000..35e5bada --- /dev/null +++ b/bazel/compat.bzl @@ -0,0 +1,18 @@ +# Copyright 2021 Code Intelligence GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SKIP_ON_MACOS = select({ + "@platforms//os:macos": ["@platforms//:incompatible"], + "//conditions:default": [], +}) |