Skip to content

[windows][build] patch base_bigstring with a memmem fallback for Windows - #2281

Merged
dulmarod merged 1 commit into
meta:mainfrom
jeremydubreil:patch-base-bigstring
Oct 28, 2026
Merged

dulmarod merged 1 commit into
meta:mainfrom
jeremydubreil:patch-base-bigstring

Conversation

@jeremydubreil

@jeremydubreil jeremydubreil commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

opam-repository marks base_bigstring.v0.17.0 as unavailable on win32 (ocaml/opam-repository#29040), because its stubs call memmem(), which the Windows C runtimes do not provide. As core depends on it, this blocks the installation of infer's dependencies on Windows.

This adds base_bigstring.v0.17.0 to infer's local opam repository, as was done for pyml in #2262: opam-repository's definition without the win32 restriction, plus a patch with a memmem() fallback, compiled only with mingw-w64 or MSVC. On Linux and macOS, the fallback is not compiled, so the library is unchanged.

The same patch could also go to opam-repository, or to janestreet/base_bigstring, whose maintainers said they accept Windows patches (janestreet/base_bigstring#6). Once a released or opam-repository version builds on Windows, this package can be removed.

@meta-cla meta-cla Bot added the CLA Signed label Oct 27, 2026
@jeremydubreil
jeremydubreil marked this pull request as ready for review October 27, 2026 12:10
@dulmarod
dulmarod merged commit 0ede80e into meta:main Oct 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants