interpret the WASI blob to produce zig2.c and compiler_rt.c

* synchronize zig1.c from zig-wasi external project
 * change the way argv works to avoid absolute paths
 * autodetect isatty
 * compiler_rt: disable some functions when object format is C
 * add missing flag from config.zig.in

The next problem is that compiling compiler_rt.c with gcc gives
"conflicting types" errors for `__eqhf2` and friends.
This commit is contained in:
Andrew Kelley
2022-11-15 17:40:04 -07:00
parent ef447c3eca
commit 39fd77bc16
4 changed files with 492 additions and 236 deletions

View File

@@ -11,3 +11,4 @@ pub const value_tracing = false;
pub const have_stage1 = false;
pub const skip_non_native = false;
pub const only_c = true;
pub const force_gpa = false;