| Build under buck2, with the toolchain pinned rather than found 460541b nandi 20d ago | 1 | # Run the crate build script (emits cfgs / OUT_DIR sources). |
| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 2 | [buildscript.run] |
| 3 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and |
| 4 | # a number of configure scripts read it unconditionally. |
| 5 | env = { OPT_LEVEL = "2" } |
| Link the ALSA the media plane has been calling all along 3b4eb6b nandi 18d ago | 6 | |
| 7 | # And honour the build script's linking directives, the same as aws-lc-sys and |
| 8 | # openh264-sys2 — see the longer note in the first. This build script asks |
| 9 | # pkg-config for alsa and emits `cargo:rustc-link-lib=asound`; buck2 drops that |
| 10 | # by default, which left 68 `snd_pcm_*` symbols undefined in every buck2-built |
| 11 | # desktop libjoltmoq.so and no DT_NEEDED on libasound to resolve them with. |
| 12 | # |
| 13 | # Nothing on Android hit it — cpal uses its AAudio host there, not ALSA — so |
| 14 | # the release that fixed the same class of defect for the phone shipped a |
| 15 | # desktop object that still could not be dlopened at all. |
| 16 | rustc_link_lib = true |
| 17 | rustc_link_search = true |