Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade libobject-pad-perl (0.814-1) unstable; #2

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = true

[*.{pm,pl,t}]
indent_size = 3
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

34 changes: 23 additions & 11 deletions Build.PL
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
use v5;
use strict;
use warnings;

use Module::Build;
use XS::Parse::Keyword::Builder;
use XS::Parse::Sublike::Builder;

my @extra_compiler_flags = qw( -Iinclude -Ihax );
my @extra_compiler_flags = qw( -Ishare/include -Iinclude -Ihax );

push @extra_compiler_flags, qw( -DDEBUGGING=-g ) if $^X =~ m|/debugperl|;
# Perl 5.36 made -std=c99 standard; before then we'll have to request it specially
push @extra_compiler_flags, qw( -std=c99 ) if $^V lt v5.36.0;

push @extra_compiler_flags, qw( -DDEBUGGING=-ggdb3 ) if $^X =~ m|/debugperl|;

use Config;
if( $Config{ccname} eq "gcc" ) {
Expand All @@ -26,19 +30,19 @@ my $build = Module::Build->new(
'perl' => '5.018', # pad_add_name_pvn, pad_add_name_pvs, gv_init_pvn
# Technically probably would work on 5.16 but doesn't:
# https://rt.cpan.org/Ticket/Display.html?id=132930
'XS::Parse::Keyword' => '0.19',
'XS::Parse::Sublike' => '0.13',
'XS::Parse::Keyword' => '0.46',
'XS::Parse::Sublike' => '0.25',
},
test_requires => {
'Data::Dump' => 0,
'Test::Fatal' => 0,
'Test::More' => '0.88', # done_testing
'Test::Refcount' => 0,
'Test2::V0' => '0.000148',
},
configure_requires => {
'Module::Build' => '0.4004', # test_requires
'XS::Parse::Keyword::Builder' => '0.19',
'XS::Parse::Sublike::Builder' => '0.13',
'XS::Parse::Keyword::Builder' => '0.46',
'XS::Parse::Sublike::Builder' => '0.25',
},
share_dir => {
module => { 'Object::Pad' => [ 'share' ] },
},
license => 'perl',
create_license => 1,
Expand All @@ -52,8 +56,16 @@ XS::Parse::Keyword::Builder->extend_module_build( $build );

XS::Parse::Sublike::Builder->extend_module_build( $build );

if( eval { require Devel::MAT::Dumper::Helper; Devel::MAT::Dumper::Helper->VERSION( '0.41' ) } ) {
if( eval { require Devel::MAT::Dumper::Helper and
Devel::MAT::Dumper::Helper->VERSION( '0.45' ) } ) {
Devel::MAT::Dumper::Helper->extend_module_build( $build );
}

if( $^X =~ m|/debugperl| ) {
# We need to tell gcc not to optimise away lots of things we want to see in
# the debugger. It'd be nice if M::B had a nicer way to do this...
$build->add_property( 'optimize' );
$build->config( optimize => '-ggdb3' );
}

$build->create_build_script;
Loading
Loading