Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.09 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.09 KB

Alien::WASI::libc linux

Alien to find or get libc for WASI

SYNOPSIS

use Alien::WASI::libc;
my $sysroot = Alien::WASI::libc->sysroot;

DESCRIPTION

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.

METHODS

sysroot

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.

SEE ALSO

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

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.