(o)
| 2340 | return False |
| 2341 | |
| 2342 | def configure_ffi(o): |
| 2343 | use_ffi = not options.without_ffi |
| 2344 | |
| 2345 | if use_ffi and not options.shared_ffi: |
| 2346 | target_arch = o['variables']['target_arch'] |
| 2347 | if not bundled_ffi_supported(flavor, target_arch): |
| 2348 | warn(f'FFI is disabled for {flavor}/{target_arch}: the bundled libffi ' |
| 2349 | 'integration is not available on this platform. Use --shared-ffi ' |
| 2350 | 'to provide a system libffi or --without-ffi to silence this ' |
| 2351 | 'warning.') |
| 2352 | use_ffi = False |
| 2353 | |
| 2354 | o['variables']['node_use_ffi'] = b(use_ffi) |
| 2355 | |
| 2356 | if options.without_ffi: |
| 2357 | if options.shared_ffi: |
| 2358 | error('--without-ffi is incompatible with --shared-ffi') |
| 2359 | return |
| 2360 | |
| 2361 | if not use_ffi: |
| 2362 | return |
| 2363 | |
| 2364 | configure_library('ffi', o, pkgname='libffi') |
| 2365 | |
| 2366 | def configure_quic(o): |
| 2367 | o['variables']['node_use_quic'] = b(options.experimental_quic and |
no test coverage detected
searching dependent graphs…