This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Perl_gp_free() use PL_tmps_stack to avoid freeing glob entries immediately.
[perl5.git] / dist / ExtUtils-CBuilder / lib / ExtUtils / CBuilder / Platform / darwin.pm
1 package ExtUtils::CBuilder::Platform::darwin;
2
3 use warnings;
4 use strict;
5 use ExtUtils::CBuilder::Platform::Unix;
6
7 our $VERSION = '0.280236'; # VERSION
8 our @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
9
10 sub compile {
11   my $self = shift;
12   my $cf = $self->{config};
13
14   # -flat_namespace isn't a compile flag, it's a linker flag.  But
15   # it's mistakenly in Config.pm as both.  Make the correction here.
16   local $cf->{ccflags} = $cf->{ccflags};
17   $cf->{ccflags} =~ s/-flat_namespace//;
18
19   # XCode 12 makes this fatal, breaking tons of XS modules
20   $cf->{ccflags} .= ($cf->{ccflags} ? ' ' : '').'-Wno-error=implicit-function-declaration';
21
22   $self->SUPER::compile(@_);
23 }
24
25
26 1;