Merge pull request #2983 from rtfeldman/wasi-libc-sys

Build WASI libc using Zig, instead of using a checked-in binary
This commit is contained in:
Anton-4 2022-05-05 09:40:46 +02:00 committed by GitHub
commit f3493850bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 131 additions and 15 deletions

View file

@ -36,12 +36,12 @@ fn promote_expr_to_module(src: &str) -> String {
pub fn compile_and_load<'a, T: Wasm32Result>(
arena: &'a bumpalo::Bump,
src: &str,
_test_wrapper_type_info: PhantomData<T>,
test_wrapper_type_info: PhantomData<T>,
) -> wasmer::Instance {
let platform_bytes = load_platform_and_builtins();
let compiled_bytes =
compile_roc_to_wasm_bytes(arena, &platform_bytes, src, _test_wrapper_type_info);
compile_roc_to_wasm_bytes(arena, &platform_bytes, src, test_wrapper_type_info);
if DEBUG_LOG_SETTINGS.keep_test_binary {
let build_dir_hash = src_hash(src);