| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # Files pulled in by include!/include_bytes!/include_str! that the |
| 2 | # default source globs miss. |
| 3 | extra_srcs = [ |
| 4 | "docs/0.22-MIGRATION.md", |
| 5 | "docs/macros/bind_java_type_0_overview.md", |
| 6 | "docs/macros/bind_java_type_1_properties.md", |
| 7 | "docs/macros/bind_java_type_2_examples.md", |
| 8 | "docs/macros/bind_java_type_3_advanced.md", |
| 9 | "docs/macros/jni_mangle.md", |
| 10 | "docs/macros/jni_sig.md", |
| 11 | "docs/macros/jni_str.md", |
| 12 | "docs/macros/native_method.md", |
| 13 | ] |
| 14 | |
| 15 | # Run the crate build script (emits cfgs / OUT_DIR sources). |
| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 16 | [buildscript.run] |
| 17 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and |
| 18 | # a number of configure scripts read it unconditionally. |
| 19 | env = { OPT_LEVEL = "2" } |