store additional files with builds (flake/startup/linkerscript/...)
This commit is contained in:
@ -174,25 +174,18 @@ my %handlers = (
|
||||
}
|
||||
|
||||
# Insert charts
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
return unless ( -f "$local_archive_dir/$experiment/$name.svg" );
|
||||
|
||||
system(
|
||||
'cp', '-i',
|
||||
"$local_archive_dir/$experiment/$name.svg",
|
||||
"$local_obsidian_attach/${experiment}_$name.svg"
|
||||
);
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=![[${experiment}_$name.svg]]\n" );
|
||||
};
|
||||
|
||||
system(
|
||||
'obsidian', 'append',
|
||||
"file=zettel/$experiment", "content=## Charts\n\n"
|
||||
);
|
||||
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=\n"
|
||||
);
|
||||
};
|
||||
$attach_image->("single_result");
|
||||
$attach_image->("scatter");
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ build module="__help" target="fail" mode="aot":
|
||||
|
||||
just clean {{ module }}
|
||||
just create-build-dir {{ module }}
|
||||
just copy-c-module {{ module }}
|
||||
just copy-auxiliary {{ module }}
|
||||
|
||||
if [ "{{ mode }}" = "aot" ]; then
|
||||
just build-wasm-module {{ module }}
|
||||
|
||||
@ -269,3 +269,5 @@ for my $experiment (@experiments) {
|
||||
inject($experiment);
|
||||
results($experiment);
|
||||
}
|
||||
|
||||
Util::notify("Finished all experiments");
|
||||
|
||||
@ -53,8 +53,7 @@ CROSS_WAMRCFLAGS := "\
|
||||
--target=i386 \
|
||||
--cpu=generic \
|
||||
--opt-level=0 \
|
||||
--enable-indirect-mode \
|
||||
--disable-llvm-intrinsics \
|
||||
--xip \
|
||||
"
|
||||
LINUX_WAMRCFLAGS := "\
|
||||
--target=i386 \
|
||||
@ -131,7 +130,14 @@ build-c-module module target="fail":
|
||||
fi
|
||||
|
||||
[private]
|
||||
copy-c-module module:
|
||||
copy-auxiliary module:
|
||||
cp flake.nix {{ BUILD_DIR }}-{{ module }}/flake.nix
|
||||
cp scripts/runner.pl {{ BUILD_DIR }}-{{ module }}/runner.pl
|
||||
cp scripts/wasm.just {{ BUILD_DIR }}-{{ module }}/wasm.just
|
||||
cp targets/lib.h {{ BUILD_DIR }}-{{ module }}/lib.h
|
||||
cp targets/linker.ld {{ BUILD_DIR }}-{{ module }}/linker.ld
|
||||
cp targets/startup.s {{ BUILD_DIR }}-{{ module }}/startup.s
|
||||
cp targets/syscalls.c {{ BUILD_DIR }}-{{ module }}/syscalls.c
|
||||
cp targets/wasm-module/{{ module }}.cpp {{ BUILD_DIR }}-{{ module }}/wasm-module.cpp
|
||||
|
||||
# =================================================================================================================== #
|
||||
|
||||
Reference in New Issue
Block a user