File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,11 @@ def cc_macros():
403
403
k [key ] = val
404
404
return k
405
405
406
+ def is_arch_arm64 ():
407
+ """Check for ARMv8-64 instructions"""
408
+ cc_macros_cache = cc_macros ()
409
+ return ('__aarch64__' in cc_macros_cache )
410
+
406
411
407
412
def is_arch_armv7 ():
408
413
"""Check for ARMv7 instructions"""
@@ -439,6 +444,7 @@ def host_arch_cc():
439
444
'__x86_64__' : 'x64' ,
440
445
'__i386__' : 'ia32' ,
441
446
'__arm__' : 'arm' ,
447
+ '__aarch64__' : 'arm' ,
442
448
'__mips__' : 'mips' ,
443
449
}
444
450
@@ -476,7 +482,10 @@ def configure_arm(o):
476
482
else :
477
483
arm_float_abi = 'default'
478
484
479
- if is_arch_armv7 ():
485
+ if is_arch_arm64 ():
486
+ o ['variables' ]['arm_fpu' ] = 'vfpv4'
487
+ o ['variables' ]['arm_version' ] = '8'
488
+ elif is_arch_armv7 ():
480
489
o ['variables' ]['arm_fpu' ] = 'vfpv3'
481
490
o ['variables' ]['arm_version' ] = '7'
482
491
else :
You can’t perform that action at this time.
0 commit comments