| Build under buck2, with the toolchain pinned rather than found | 1 | # wayland-scanner proc macros read the protocol XML at compile time. |
| 2 | extra_srcs = ["**/*.xml"] | |
| 3 | ||
| 4 | ||
| 5 | # Run the crate build script (emits cfgs / OUT_DIR sources). | |
| Build both objects under buck2, against the BuildBuddy cache | 6 | [buildscript.run] |
| 7 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and | |
| 8 | # a number of configure scripts read it unconditionally. | |
| 9 | env = { OPT_LEVEL = "2" } |