| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 1 | [buildscript.run] |
| 2 | env = { OPT_LEVEL = "2" } |
| Let the media plane cross to the phone, camera and all fd0e21a nandi 18d ago | 3 | |
| 4 | # Honour the build script's own linking directives, which buck2 drops by |
| 5 | # default. It compiles aws-lc's C into `libaws_lc_0_43_0_crypto.a` in OUT_DIR |
| 6 | # and emits `cargo:rustc-link-lib` and `cargo:rustc-link-search` to have it |
| 7 | # linked; without these two the flags file came out as `--cfg=universal` alone |
| 8 | # and the archive sat on disk unreferenced, leaving 129 `aws_lc_0_43_0_*` |
| 9 | # symbols undefined in every buck2-built libjoltmoq.so. |
| 10 | # |
| 11 | # Nothing caught that for as long as nothing loaded one. Undefined symbols are |
| 12 | # legal in a cdylib, and `--no-undefined` was only ever on libjoltapp's own |
| 13 | # link, which is a different object. The phone is the first consumer to dlopen |
| 14 | # it, and there it fails outright on `aws_lc_0_43_0_EVP_PKEY_free`. |
| 15 | rustc_link_lib = true |
| 16 | rustc_link_search = true |