Ubuntu is based on debian and debian a more stable base to build on
IMHO. This shouldn't effect much other than some minor changes in the
exact version clang we use to cross compile and the specific linked
host shared libraries.
Also, run `apt-get clean` to minimize image size (not that that really
matters since this is only used during SDK build).
libc++ and libc++abi have config variables which can be used to enable
multi-arch installation paths. Use those instead of moving the libraries
after they are installed.
This renames /opt/wasi/share/sysroot to /opt/wasi/share/wasi-sysroot.
If the user selects an alternate prefix, this allows wasi-sysroot to
coexist with other packages with less risk of namespace collision. For
example, if the user uses a prefix of /usr/local, this avoids using
/usr/local/share/sysroot, which is fairly generic, and uses
/usr/local/share/wasi-sysroot, which more clearly indicates its purpose.
The wasi-libc update here brings numerous bug fixes and minor changes,
and __wasilibc_rmfileat has been renamed to __wasilibc_unlinkat.
The only WebAssembly-relevant patch in the LLVM 8.0.1 update here is
4b1712f7, a fix for using /dev/null as the output file.
Libc++abi's verbose terminate handler is only useful when exceptions are
enabled. Disabling it removes a few hundred thousand bytes from many C++
programs.
Makefile: Don't mix phony targets with directory names
delete a space in predefined-macros.txt
replace some macros with its builtins analogs
rename printf_no_Lf to __small_printf
Define TIME_UTC to be 1.
Define CLOCKS_PER_SEC to have type clock_t.
Optimize lseek in the `tell` case.
Say "wasm32-wasi" rather than "wasm32-unknown-wasi".
Declare getentropy in <sys/random.h>
Disable unused fields in FILE and __libc.
Add vfwprintf.c to the printscan list.
Implement FD_SET, FD_CLR, etc.
Remove capsicum.h; WASI libc doesn't support that API, even internally.
Make calloc set ENOMEM when failing due to overflow.
Make the strerror message for ESUCCESS (0) be "Success".
Implement reallocarray.
Update README.md
Add missing asctime symbol
Fix floatscan no long double usage (#21)
Remove the Linux-specific <sys/signalfd.h> header.
Declare getrusage.
Format changes to musl code to fit musl's style.
Fixes#20
gitignore build
- Fixes C++ <iostream> with -fno-exceptions
- Fixes the remaining issue in #6 with using newer LLVM versions
- Adds an API for preopened directory lookups.
- Fixes <inttypes.h> macros (#13).