Hi,

$Config{ptrsize} seems the definitive method. It is 4 or 8 for 32bit / 64bit Perl and gets you the right answer if you are running a 32 bit Perl on 64 bit Windows.

I think $Config{ivsize} as used in current pp makefiles should always work too, but using $Config{ptrsize} seems more directly connected to the question.

For choosing 64 bit vs 32 bit pre compiled objects it is the Perl you are interested in rather than the operating system.

For info only - I use $ENV{PROCESSOR_IDENTIFIER} if I want to know the operating system bitness. This will tell me correct answer even if I'm running a 32 bit Perl on a 64 bit system. I keep meaning to seek out a better way which there must be.


Regards

Mark





On 31/03/2011 08:50, Roderich Schupp wrote:
On Thu, Mar 31, 2011 at 1:48 AM, Mark Dootson<[email protected]>  wrote:
The zip

http://www.wxperl.co.uk/ppamd64_resource.zip

Contains objects that can be unzipped into the current PAR::Packer source in
the directory myldr. You want the contained win32.coff / win32.obj to
replace the originals.

Thanks, Mark. I'll try to incorporate this stuff into PAR::Packer over
the weekend.
This begs the obvious question: how do I know that I am building for
64 bit Windows?

Cheers, Roderich

Reply via email to