Skip to content

Alien to find or get libc for WASI

Notifications You must be signed in to change notification settings

perlwasm/Alien-WASI-libc

Repository files navigation

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.

About

Alien to find or get libc for WASI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages