Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Experimental support for experimental raccoon build system
  • Loading branch information
niner committed Sep 1, 2016
1 parent dd99758 commit e746858
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions META.info
Expand Up @@ -18,5 +18,12 @@
"license" : "http://www.perlfoundation.org/artistic_license_2_0",
"support" : {
"irc" : "irc://irc.freenode.org/#perl6"
},
"builder": "Distribution::Builder::MakeFromJSON",
"build": {
"makefile-variables": {
"p5helper": {"library": "p5helper"},
"perlopts": {"run": "perl -MExtUtils::Embed -e ccopts -e ldopts"}
}
}
}
10 changes: 7 additions & 3 deletions Makefile.in
@@ -1,10 +1,14 @@
.PHONY: clean test
CC = %CC%
.PHONY: all clean test install
CC = %cc%
RM = %rm%
PERL6 = %perl6%

all: %p5helper%
clean:
rm "%p5helper%"
$(RM) "%p5helper%"
rmdir resources/libraries
rmdir resources
$(RM) Makefile
%p5helper%: p5helper.c
$(CC) -Wall p5helper.c %perlopts% -shared -o "%p5helper%" -fPIC -g
test: all
Expand Down
2 changes: 1 addition & 1 deletion configure.pl6
Expand Up @@ -15,7 +15,7 @@ sub configure() {
or die "\nPlease install the Filter::Simple Perl 5 module!\n";

my %vars;
%vars<CC> = $*VM.config<cc> // $*VM.config<nativecall.cc> // 'cc';
%vars<cc> = $*VM.config<cc> // $*VM.config<nativecall.cc> // 'cc';
%vars<p5helper> = p5helper().Str;
%vars<perlopts> = run(<perl -MExtUtils::Embed -e ccopts -e ldopts>, :out).out.lines.join('');
%vars<perl6> = $*EXECUTABLE;
Expand Down

0 comments on commit e746858

Please sign in to comment.