From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
— |
$ExtUtils::Builder::Binary::VERSION = '0.029' ;
my %allowed_types = map { ( $_ => 1) } qw/shared-library static-library loadable-object executable/ ;
sub _init {
my ( $self , %args ) = @_ ;
my $type = $args {type} or Carp::croak( 'No type given' );
$allowed_types { $type } or Carp::croak( "$type is not an allowed linkage type" );
$self ->{type} = $type ;
return ;
}
sub type {
my $self = shift ;
return $self ->{type};
}
1;
|