Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (10 sloc) 0.434 kB
9ce75d1 @jnthn Add a library that can compile very simple C libraries for usage duri…
authored
1 module t::CompileTestLib;
2
3 sub compile_test_lib($name) is export {
4 my $o = $*VM<config><o>;
5 my $so = $*VM<config><load_ext>;
6 my $c_line = "$*VM<config><cc> -c $*VM<config><cc_o_out>$name$o $*VM<config><ccflags> t/$name.c";
7 my $l_line = "$*VM<config><ld> $*VM<config><ldflags> $*VM<config><ld_load_flags> " ~
8 "$*VM<config><libs> $*VM<config><ld_out>$name$so $name$o";
9 shell($c_line);
10 shell($l_line);
11 }
Something went wrong with that request. Please try again.