| 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 | "api/xml/gl.xml", |
| 5 | "api/xml/glx.xml", |
| 6 | "api/xml/wgl.xml", |
| 7 | "api_angle/scripts/egl_angle_ext.xml", |
| 8 | "api_angle/scripts/gl_angle_ext.xml", |
| 9 | "api_egl/api/egl.xml", |
| 10 | "api_webgl/specs/latest/1.0/webgl.idl", |
| 11 | "api_webgl/specs/latest/2.0/webgl2.idl", |
| 12 | ] |
| 13 | |
| 14 | # Run the crate build script (emits cfgs / OUT_DIR sources). |
| Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 19d ago | 15 | [buildscript.run] |
| 16 | # cargo sets OPT_LEVEL for every build script; buck2 does not, and cc-rs and |
| 17 | # a number of configure scripts read it unconditionally. |
| 18 | env = { OPT_LEVEL = "2" } |