Commit 601ac11
committed
Unblock aws-lc-sys cross-compile in CI
The new bpi rev pulled reqwest 0.13, whose `rustls` feature forces
aws-lc-rs as the rustls crypto provider via cargo feature unification.
aws-lc-sys then has to cross-compile its bundled C, which the napi-rs
docker images can't do out of the box:
- x86_64-unknown-linux-gnu: aws-lc-sys probes the compiler with
-fuse-ld=lld and the image has no lld installed.
- aarch64-unknown-linux-gnu: the image pre-sets CC_aarch64_unknown_linux_gnu
and CFLAGS pointing at its custom cross toolchain under
/usr/aarch64-unknown-linux-gnu, whose sysroot is missing stdatomic.h.
The previous exports just sat alongside the docker's values without
overriding them, so aws-lc-sys was still picking up the broken sysroot.
Install lld and, on aarch64, unset the inherited env before exporting
the Debian cross toolchain values so they actually take effect.
This is the smallest fix that keeps rustls in place. The alternative
was patching bpi to use reqwest's `rustls-no-provider` plus an explicit
ring provider, which would have required a runtime
CryptoProvider::install_default() call and another upstream fork bump.1 parent 75263c2 commit 601ac11
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| |||
0 commit comments