Skip to content
Permalink
Browse files

Use a script to clean up .precomp

Windows compatibility.
  • Loading branch information...
vrurg committed Apr 9, 2019
1 parent 38980f0 commit 4b481194131d8e4718a5edb41c1f121356d64dac
Showing with 17 additions and 1 deletion.
  1. +16 −0 tools/build/clean-precomps.pl
  2. +1 −1 tools/templates/Makefile.in
@@ -0,0 +1,16 @@
#!/usr/bin/env perl5
use File::Find;
use File::Path q<remove_tree>;

my @d;
for my $dir (@ARGV) {
next unless -d $dir;
find(
sub {
push @d, $File::Find::name if $_ eq ".precomp" and -d;
},
$dir
);
}
remove_tree(@d);
exit;
@@ -10,7 +10,7 @@ install: @for_backends(@backend_prefix@-install )@ $(LAUNCHER)-install

clean: @for_backends(@backend_prefix@-clean )@
$(RM_F) perl6@runner_suffix@ rakudo.js.map
$(PERL5) -MFile::Find -MFile::Path=remove_tree -e 'my @d; find( sub { push @d, $$File::Find::name if $$_ eq ".precomp" and -d }, "@base_dir@" ); remove_tree(@d)'
$(PERL5) @script(clean-precomps.pl)@ @base_dir@

test: @for_backends(@backend_prefix@-test$(HARNESS_TYPE))@
spectest: @for_backends(@backend_prefix@-spectest$(HARNESS_TYPE))@

0 comments on commit 4b48119

Please sign in to comment.
You can’t perform that action at this time.