[PATCH 64bit] Fix speclib for x86_64

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Mon Feb 18 15:45:00 GMT 2013


On Mon, Feb 18, 2013 at 04:19:17AM -0600, Yaakov wrote:
>On Sun, 17 Feb 2013 11:51:59 -0500, Christopher Faylor wrote:
>> >+my $uscore = ($target =~ /^x86_64\-/ ? undef : '_');
>> 
>> There is no reason to quote the dash here.  But, I would actually prefer
>> a substr check since that is a little faster.
>> 
>> my $uscore = (substr($target, 0, 7) eq 'x86_64-') ? ...
>
>I was just following the syntax already in mkimport:
>
>> my $is64bit = ($target =~ /^x86_64\-/ ? 1 : 0);

I haven't reviewed very many 64-bit changes to code that I wrote, like
mkimport or speclib.  However, my comment applies equally to mkkmport if
it is using a similar mechanism.



More information about the Cygwin-patches mailing list