This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH 64bit] Fix speclib for x86_64
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);
Yaakov