| Lift freeq's AV media plane out of sleek 90f8b89 nandi 20d ago | 1 | # Link through `zig cc`, which brings its own glibc sysroot, so a build needs no |
| 2 | # system C toolchain — the same arrangement vidya uses, and the reason this |
| 3 | # repo builds on a machine with no `cc` on its PATH at all. |
| 4 | # |
| 5 | # The pinned tools come from the DotSlash files in `scripts/`, fetched and |
| 6 | # cached on first use; `dotslash` must be on PATH. Paths are relative to the |
| 7 | # directory cargo runs in, which is the workspace root. |
| 8 | [build] |
| 9 | rustc-wrapper = "scripts/sccache" |
| 10 | |
| 11 | # openh264 is C++, so the workspace needs both halves of zig's toolchain. |
| 12 | [env] |
| 13 | CC = { value = "scripts/zcc", relative = true } |
| 14 | CXX = { value = "scripts/zxx", relative = true } |
| 15 | |
| 16 | [target.x86_64-unknown-linux-gnu] |
| 17 | linker = "scripts/zcc" |