Revision 1205734e
configure | ||
---|---|---|
322 | 322 |
return (version, is_clang) |
323 | 323 |
|
324 | 324 |
|
325 |
def configure_arm(o): |
|
326 |
# V8 on ARM requires that armv7 is set. CPU Model detected by |
|
327 |
# the presence of __ARM_ARCH_7__ and the like defines in compiler |
|
328 |
if options.arm_float_abi: |
|
329 |
hard_float = options.arm_float_abi == 'hard' |
|
330 |
else: |
|
331 |
hard_float = arm_hard_float_abi() |
|
332 |
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float) |
|
333 |
|
|
334 |
armv7 = is_arch_armv7() |
|
335 |
if armv7: |
|
336 |
# CHECKME VFPv3 implies ARMv7+ but is the reverse true as well? |
|
337 |
o['variables']['arm_fpu'] = 'vfpv3' |
|
338 |
o['variables']['arm_neon'] = 0 |
|
339 |
o['variables']['armv7'] = int(armv7) |
|
340 |
|
|
341 |
|
|
325 | 342 |
def configure_node(o): |
326 | 343 |
# TODO add gdb |
327 | 344 |
o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs |
... | ... | |
335 | 352 |
o['variables']['host_arch'] = host_arch |
336 | 353 |
o['variables']['target_arch'] = target_arch |
337 | 354 |
|
338 |
# V8 on ARM requires that armv7 is set. CPU Model detected by |
|
339 |
# the presence of __ARM_ARCH_7__ and the like defines in compiler |
|
340 | 355 |
if target_arch == 'arm': |
341 |
if options.arm_float_abi: |
|
342 |
hard_float = options.arm_float_abi == 'hard' |
|
343 |
else: |
|
344 |
hard_float = arm_hard_float_abi() |
|
345 |
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float) |
|
346 |
o['variables']['armv7'] = 1 if is_arch_armv7() else 0 |
|
356 |
configure_arm(o) |
|
347 | 357 |
|
348 | 358 |
cc_version, is_clang = compiler_version() |
349 | 359 |
o['variables']['clang'] = 1 if is_clang else 0 |
Also available in: Unified diff