Subject: | [PATCH] allow PERL_DISABLE_PMC to be defined from anywhere |
I enable PERL_DISABLE_PMC in a .h, not in CCFLAGS. CCFLAGS on Unix
typically has no -Ds in it, build options go into config.h, not
Config.pm's CCFLAGS. This change allows PERL_DISABLE_PMC option to pass
tests regardless of where it is defined.
Related to http://perl5.git.perl.org/perl.git/commit/ebfad2b9fea703468a88acb6a1afbb759366ffd5
Subject: | 0001-allow-PERL_DISABLE_PMC-to-be-defined-from-anywhere.patch |
From 8ff68eb3b519d43d83118a8f156f285170a46da8 Mon Sep 17 00:00:00 2001
From: bulk88 <bulk88@hotmail.com>
Date: Sun, 28 Dec 2014 02:12:57 -0500
Subject: [PATCH] allow PERL_DISABLE_PMC to be defined from anywhere
I enable PERL_DISABLE_PMC in a .h, not in CCFLAGS. CCFLAGS on Unix
typically has no -Ds in it, build options go into config.h, not
Config.pm's CCFLAGS. This change allows PERL_DISABLE_PMC option to pass
tests regardless of where it is defined.
---
t/parent-pmc.t | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/t/parent-pmc.t b/t/parent-pmc.t
index 851a438..f9c0330 100755
--- a/t/parent-pmc.t
+++ b/t/parent-pmc.t
@@ -13,8 +13,15 @@ use Config;
use lib 't/lib';
plan skip_all => ".pmc are only available with 5.6 and later" if $] < 5.006;
+my $no_pmc;
+foreach(Config::non_bincompat_options()) {
+ if($_ eq "PERL_DISABLE_PMC"){
+ $no_pmc = 1;
+ last;
+ }
+}
plan skip_all => ".pmc are disabled in this perl"
- if $Config{ccflags} =~ /(?<!\w)-DPERL_DISABLE_PMC\b/;
+ if $no_pmc;
plan tests => 3;
use vars qw($got_here);
--
1.7.9.msysgit.0