Shu Zong Chen created CB-9352:
---------------------------------

             Summary: cordova-android's build.detectArchitecture misidentifies 
AMD cpu as arm
                 Key: CB-9352
                 URL: https://issues.apache.org/jira/browse/CB-9352
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
            Reporter: Shu Zong Chen


The android templates has autodetection code that determines a target 
architecture: see 
https://github.com/apache/cordova-android/blob/4.0.2/bin/templates/cordova/lib/build.js#L565

The problem here is only output containing the substring 'intel' is matched as 
'x86', otherwise the detected architecture is 'arm'.  This is the value of the 
variable output on my (amd) machine when I'm running an avd using 'Intel Atom 
(x86)' image:

{code}
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 3
model name      : 06/03
stepping        : 3
microcode       : 0x1000065
cpu MHz         : 0.000
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep pge cmov pat mmx fxsr 
sse sse2 pni ssse3 hypervisor
bogomips        : 1391.00
clflush size    : 32
cache_alignment : 32
address sizes   : 36 bits physical, 32 bits virtual
power management:
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to