import native symbols in lib.h
lib.h gets included into the host module and the wasm module. For the host module the attributes will be ignored.
This commit is contained in:
@ -198,10 +198,10 @@ sub read_experiment_info {
|
||||
open( my $fhandle, '<', "$local_archive_dir/$exp/0.info" )
|
||||
or die "Failed to open 0.info: $!";
|
||||
my $info = <$fhandle>;
|
||||
chomp $info;
|
||||
chomp $info if defined $info;
|
||||
close($fhandle);
|
||||
|
||||
return $info;
|
||||
return defined $info ? $info : "";
|
||||
}
|
||||
|
||||
sub read_marker_info {
|
||||
@ -251,7 +251,9 @@ sub select_experiment {
|
||||
my $info = read_experiment_info($exp);
|
||||
|
||||
push @exp_with_notes,
|
||||
defined $info ? sprintf( "%-50s (Note: %s)", $exp, $info ) : $exp;
|
||||
( defined $info && length($info) > 0 )
|
||||
? sprintf( "%-50s (Note: %s)", $exp, $info )
|
||||
: $exp;
|
||||
}
|
||||
|
||||
my @selected_experiments =
|
||||
|
||||
@ -433,11 +433,8 @@ my %handlers = (
|
||||
'98. Delete Archived Experiments' => sub {
|
||||
|
||||
# Delete archived experiments
|
||||
my @experiments = Util::find_subdirs($local_archive_dir);
|
||||
my @selected_experiments =
|
||||
TUI::select_from_list( "Select Archived Experiments to Delete",
|
||||
1, @experiments );
|
||||
die "No experiment selected" unless @selected_experiments;
|
||||
my @selected_experiments = Util::select_experiment(1);
|
||||
|
||||
system( 'rm', '-rf', "$local_archive_dir/$_" )
|
||||
for @selected_experiments;
|
||||
},
|
||||
|
||||
@ -15,7 +15,6 @@ WASI_CFLAGS := "\
|
||||
-Wl,--initial-memory=65536 \
|
||||
-Wl,--export=__heap_base \
|
||||
-Wl,--export=__data_end \
|
||||
-Wl,--allow-undefined \
|
||||
"
|
||||
CROSS_CFLAGS_NOWASM := "\
|
||||
-O0 \
|
||||
|
||||
Reference in New Issue
Block a user