Alien to find or get libc for WASI
use Alien::WASI::libc;
my $sysroot = Alien::WASI::libc->sysroot;
This Alien provides libc for WebAssembly System Interface (WASI), which is among the requirements for building C programs for WebAssembly. It is NOT required for RUNNING C programs once they are built.
my $sysroot = Alien::WASI::libc->sysroot;
Returns the PATH to the sysroot for WASI libc. You can pass this to something
like clang
to build C programs for WebAssembly.
Graham Ollis [email protected]
This software is copyright (c) 2020 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.