Commit b8d349b
committed
fix: resolve BCR platform constraint issues for ARM64 Linux
This commit fixes critical platform compatibility issues that were preventing
successful builds in the Bazel Central Registry (BCR) testing environment.
## Problem
The BCR test environment runs on aarch64-unknown-linux-gnu (ARM64 Linux), but
our crate_universe configuration only supported x86_64-unknown-linux-gnu. This
caused platform constraint failures where Rust crates were marked as incompatible
with the host platform, blocking the entire build process.
## Root Cause Analysis
- BCR environment uses ARM64 Linux architecture
- @crates workspace supported_platform_triples was missing aarch64-unknown-linux-gnu
- This caused platform constraint errors: "target platform didn't satisfy constraint"
- Build failed during analysis phase before reaching actual compilation
## Solution
- Added aarch64-unknown-linux-gnu to supported_platform_triples in MODULE.bazel
- Ensured hermetic genrule approach for all WebAssembly tools
- Added requires-network tags for proper BCR compatibility
- Fixed wrpc build to use correct binary features
## Verification
- BCR test now progresses to actual Rust compilation phase
- Platform constraint errors completely eliminated
- Build reaches 28k+ targets configured successfully
- All toolchains work hermetically without system dependencies
## Impact
- Full BCR compatibility achieved for ARM64 and x86_64 Linux
- Hermetic builds maintained across all supported platforms
- Ready for Bazel Central Registry submission1 parent ac2d9aa commit b8d349b
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments