Commit Graph
7 Commits
Author SHA1 Message Date
eric 5e8d94759c build(cross): give bindgen clang's mm_malloc.h on the windows-gnu target
The netstack-lwip update generates its lwIP bindings at build time for the
exact target rather than shipping them checked in, so bindgen now parses
mingw's headers under `--target=x86_64-pc-windows-gnu`. That reaches
`stdlib.h`, and on mingw `stdlib.h` reaches `malloc.h`, which includes
`mm_malloc.h` -- a header the compiler is expected to supply rather than the
sysroot.

clang has one, in its resource directory, and the cross image carries four
copies of it. The libclang bindgen loads simply does not put that directory on
the include path for this target, so the build fails on a header that is
sitting right there:

    /usr/x86_64-w64-mingw32/include/malloc.h:84:10:
    fatal error: 'mm_malloc.h' file not found

`Cross.toml` links clang's copy into the sysroot clang is already searching --
it found `malloc.h` there -- which is enough, and the glob keeps an LLVM bump
in the image from breaking it again.

Only this target is affected: it is the only one whose headers reach
`mm_malloc.h`. The x86-64 and aarch64 musl targets were built clean to check.
Both `ci.yml` and `release.yml` run `cross` from the repository root, so
neither workflow needs a change.
2026-09-10 17:59:35 +08:00
eric f576d34b95 Fix build and test 2026-03-14 10:05:51 +08:00
eric 5a6c4cec96 chore: strip was stabilized 2022-04-19 02:23:41 +08:00
eric 2da69970c9 ci: pass strip flag via env variable 2021-03-06 10:13:57 +08:00
eric 297bba8eca bin: passthrough the version env variables while cross compiling 2021-02-05 22:45:18 +08:00
eric 761fdb2de4 add more targets 2020-10-17 23:06:13 +08:00
eric 897fc87ce8 initial commit 2020-10-07 22:14:06 +08:00