-
Notifications
You must be signed in to change notification settings - Fork 5
/
Build.pm
34 lines (31 loc) · 1.43 KB
/
Build.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use v6;
use Panda::Common;
use Panda::Builder;
my $this-is-windows = $*OS eq 'MSWin32';
class Build is Panda::Builder {
method build(Str $path) {
if $this-is-windows {
note ' _-';
note ' _-//';
note ' _-_/ /';
note ' _--_/ _/';
note ' _- _/ _/';
note ' ___-(O) _/ _/ **************************';
note ' __-- __ /_ / * Please see the README *';
note '____--__---- / \_ * for information on how *';
note ' ----- / \_ \_ * to install on windows. *';
note ' // // \__ \_**************************';
note ' // // \_ \_';
note ' /// // \__-';
return;
}
my $string-to-execute = "make panda-install";
say "Executing: {$string-to-execute}";
my $retval = +shell $string-to-execute;
if $retval != 0 {
note "*** xxhash library build failed with exit status {$retval}!";
exit 1;
}
}
}
# vi: ft=perl6