Think of select() as a conditional expression that lives inside your build rules. It functions exactly like a switch or if/else statement in a programming language, but it operates during the “analysis phase” of a Bazel build. See the other post for constraint_setting and constraint_values 1. The Core Purpose When you build code, you often…
Bazel: select
Posted on