Repository navigation
0.2.0
Tried on FFI-heavy packages (mirage-crypto, lwt, cryptokit, minisat,
ocaml-lua, stb_image, extunix, lz4, snappy, argon2, ocaml-expat, lmdb, glpk,
fftw3, secp256k1-internal, tsdl...); fixes for what broke.
- wasm32: integer literals beyond 31 bits in the bytecode's DATA section
are wrapped to 31 bits instead of aborting the program at startup (optint,
hence checkseum and decompress, holds such literals in its 32-bit code). - Node: the standard streams are the process's, as bytes (binary output and
input were decoded as UTF-8, NUL bytes dropped). - C++ stubs and libraries with exceptions (
-fwasm-exceptions). -pthreaddropped from the flags of stubs (lwt):caml_statebecame a
thread-local variable there.- wasm64:
caml_ba_alloc_dimsgets its dimensions asintnat(stubs
passingints corrupted the heap); libffi writes widened return values
at their address (ctypes-foreign calls returningintread 0). linkshows the C functions whose calls wasm-ld turned into traps
(signature mismatches between C files), it used to hide them.dune -x: the tools of the host next to the toolchain'socamlc
(%{ocaml}...);pkg-configonly shows the sysroot's libraries to the
wasm context; C tests see the sysroot's headers and libraries; archives
holding host objects (a vendored library built bymake) are rebuilt from
the native build's C files; a kept_buildof another tool is left
alone; a package that produced no archive is not marked as built.- Packages without dune: the C files behind the native build's archive.
linkbuilds the libraries named by-lXin.cmafiles (custom-only
libraries such as stb_image, C libraries bound with ctypes-foreign).- System recipes are also found from the
-lXof a package's.cmafiles. - New recipes: liblz4, snappy, expat, fftw3, glpk, libargon2, liblmdb, sdl2;
mirage-crypto (-ec, -rng), lwt, cryptokit, secp256k1-internal, lmdb.