develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119869] [PATCH] WinCE Makefile and make_ext.pl generaland XS fixes

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
September 18, 2013 13:19
Subject:
Re: [perl #119869] [PATCH] WinCE Makefile and make_ext.pl generaland XS fixes
Message ID:
20130918131939.GC66035@plum.flirble.org
On Wed, Sep 18, 2013 at 01:34:47PM +0100, Steve Hay wrote:

> Would anyone with knowledge of cross-compilation on other platforms
> care to comment on the make_ext.pl part?

I don't have knowledge of the cross-compilation stuff, so I can't comment
on that, but I see that the patch does this:

--- a/make_ext.pl
+++ b/make_ext.pl
@@ -1,6 +1,9 @@
 #!./miniperl
 use strict;
 use warnings;
+BEGIN {
+    eval 'use constant IS_CROSS => '.(defined $::Cross::platform ? 1 : 0).';';
+}
 use Config;


Surely those 3 lines are equivalent to just:

use constant IS_CROSS => defined $::Cross::platform ? 1 : 0;

(Tested with the attached)

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About