Revision b9167742 configure

View differences:

configure
336 336
          '__ARM_ARCH_7M__' in cc_macros_cache)
337 337

  
338 338

  
339
def is_arm_neon():
340
  """Check for ARM NEON support"""
341
  return '__ARM_NEON__' in cc_macros()
342

  
343

  
339 344
def arm_hard_float_abi():
340 345
  """Check for hardfloat or softfloat eabi on ARM"""
341 346
  # GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify
......
422 427
    hard_float = options.arm_float_abi == 'hard'
423 428
  else:
424 429
    hard_float = arm_hard_float_abi()
425
  o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
426 430

  
427 431
  armv7 = is_arch_armv7()
428
  if armv7:
429
    # CHECKME VFPv3 implies ARMv7+ but is the reverse true as well?
430
    o['variables']['arm_fpu'] = 'vfpv3'
431
    o['variables']['arm_neon'] = 0
432
  # CHECKME VFPv3 implies ARMv7+ but is the reverse true as well?
433
  fpu = 'vfpv3' if armv7 else 'vfpv2'
434

  
432 435
  o['variables']['armv7'] = int(armv7)
436
  o['variables']['arm_fpu'] = fpu
437
  o['variables']['arm_neon'] = int(is_arm_neon())
438
  o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
433 439

  
434 440

  
435 441
def configure_node(o):

Also available in: Unified diff