SERVER-136184ClosedFixed
Require release Evergreen distros when the Bazel build wrapper uses release configurations
h2. Problem The Evergreen Bazel build wrapper can enable release configurations while running on a regular Evergreen distro. During review of [mongo PR #63636|https://github.com/10gen/mongo/pull/63636], s390x release compilation was moved to ARM64 builders, but the assignments used regular distros despite equivalent release distros being available. Add a runtime check to catch this configuration mistake before compilation. h2. Proposed change Add a shared check to {{evergreen/bazel_compile.sh}}