This repository has no description
1{
2 run,
3
4 clang,
5 lld,
6 musl,
7 compiler-rt,
8}:
9
10run
11 {
12 name = "basic-init";
13 src = ./.;
14 path = [
15 clang
16 lld
17 ];
18 }
19 ''
20 clang -c -o init.o init.c --target=wasm32 -nostdinc -isystem ${musl}/include
21 wasm-ld -o init init.o ${compiler-rt}/libclang_rt.builtins-wasm32.a ${musl}/lib/crt1.o -L${musl}/lib -lc --fatal-warnings --initial-memory=655360
22
23 mkdir -p $out/bin
24 cp init $out/bin
25 ''