HI,
We have several rules which only make sense on on our windows build environment, and not on our linux build environment. For example compiling a .rc file into a .res file. I want `build ...` to work on our linux environment so I want a low effort way to skip out these targets by marking them as not compatible with the build.
If I use exec_compatible_with I get an error: Unable to find an execution platform for target platform @local_config_platform//:host from available execution platforms []
I cannot seem to set defaults for the rules with any other system than macros. WHich I have successfully used a macro to wrap the rule and inject in target_compatible_with.
I also need to ensure I explicitly remove the exec_compatible_with from the rules, because I don't have remote execution providers registered with Bazel.
Is there a better system so that I can tell bazel to skip not error if there is not an execution environment available?
Thanks in advance