Skip to content

Commit

Permalink
1652 add trickified to default sie generation (#1680)
Browse files Browse the repository at this point in the history
* Add trickeifed classes.resource to sie generation after cp.

* Go through all trickified classes.resource files if available and don't die on any if not found.
  • Loading branch information
hchen99 authored Mar 27, 2024
1 parent 2099842 commit 72e82e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libexec/trick/sie_concat
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ close($classes_resource);
# Add trickified classes.resource if available
foreach my $path ( @trick_python_paths ) {
my $trickified_dir = dirname($path);
open(my $classes_resource, "<", "$trickified_dir/build/classes.resource")
or die "cannot open $trickified_dir/build/classes.resource";
while(my $line = <$classes_resource>) {
print $S_sie_resource $line;
if (open(my $classes_resource, "<", "$trickified_dir/build/classes.resource")) {
while(my $line = <$classes_resource>) {
print $S_sie_resource $line;
}
close($classes_resource);
}
close($classes_resource);
}

open(my $top_level_objects_resource, "<", "build/top_level_objects.resource")
Expand Down

0 comments on commit 72e82e1

Please sign in to comment.