Skip Menu |

This queue is for tickets about the ExtUtils-CChecker CPAN distribution.

Report information
The Basics
Id: 95368
Status: resolved
Priority: 0/
Queue: ExtUtils-CChecker

People
Owner: Nobody in particular
Requestors: PLICEASE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.10



Subject: feature request: please add pass-thru to ExtUtils::CBuilder for config
ExtUtils::CBuilder has a config argument for its constructor and it would be nice to be able to use alternate configurations for ExtUtils::CChecker too, so you could do: my $cc = ExtUtils::CChecker->new(config => { cc => 'clang' });
On Mon May 05 08:43:50 2014, PLICEASE wrote: Show quoted text
> ExtUtils::CBuilder has a config argument for its constructor and it > would be nice to be able to use alternate configurations for > ExtUtils::CChecker too, so you could do: > > my $cc = ExtUtils::CChecker->new(config => { cc => 'clang' });
Any chance that we could see this feature? I am willing to do the legwork if you don't have the time!
Added. In next version. -- Paul Evans
Subject: rt95368.patch
=== modified file 'lib/ExtUtils/CChecker.pm' --- lib/ExtUtils/CChecker.pm 2013-12-12 17:12:54 +0000 +++ lib/ExtUtils/CChecker.pm 2015-05-29 18:13:17 +0000 @@ -1,7 +1,7 @@ # You may distribute under the terms of either the GNU General Public License # or the Artistic License (the same terms as Perl itself) # -# (C) Paul Evans, 2010-2011 -- leonerd@leonerd.org.uk +# (C) Paul Evans, 2010-2015 -- leonerd@leonerd.org.uk package ExtUtils::CChecker; @@ -81,6 +81,11 @@ instance. If absent, defaults to enabled. To disable quietness, i.e. to print more verbosely, pass a defined-but-false value, such as C<0>. +=item config => HASH + +If given, passed through as the configuration of the underlying +C<ExtUtils::CBuilder> instance. + =back =cut @@ -93,7 +98,10 @@ my $quiet = 1; $quiet = 0 if defined $args{quiet} and !$args{quiet}; - my $cb = ExtUtils::CBuilder->new( quiet => $quiet ); + my $cb = ExtUtils::CBuilder->new( + quiet => $quiet, + config => $args{config}, + ); return bless { cb => $cb,