mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
perl: Fix Makefile.PL
This commit is contained in:
parent
8935ecfdb8
commit
1865898cd4
1 changed files with 5 additions and 6 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# Usage: Makefile.PL --pp # disable XS
|
||||
# Makefile.PL -g # add -g to the compiler and disable optimization flags
|
||||
use inc::Module::Install;
|
||||
use Module::Install::XSUtil 0.32;
|
||||
use Config;
|
||||
|
|
@ -21,8 +23,9 @@ if ( $] >= 5.008005 and want_xs() ) {
|
|||
if ( $has_c99 ) {
|
||||
use_xshelper();
|
||||
cc_src_paths('xs-src');
|
||||
if ($ENV{DEBUG}) {
|
||||
cc_append_to_ccflags '-g';
|
||||
|
||||
if($Module::Install::AUTHOR) {
|
||||
postamble qq{test :: test_pp\n\n};
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
@ -67,10 +70,6 @@ test_requires('Test::Requires');
|
|||
|
||||
test_with_env( test_pp => PERL_DATA_MESSAGEPACK => 'pp' );
|
||||
|
||||
if($Module::Install::AUTHOR) {
|
||||
postamble qq{test :: test_pp\n\n};
|
||||
}
|
||||
|
||||
repository('http://github.com/msgpack/msgpack');
|
||||
auto_include;
|
||||
WriteAll;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue