MCPcopy Index your code
hub / github.com/nodejs/node / configure_ffi

Function configure_ffi

configure.py:2342–2364  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

2340 return False
2341
2342def 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
2366def configure_quic(o):
2367 o['variables']['node_use_quic'] = b(options.experimental_quic and

Callers 1

configure.pyFile · 0.85

Calls 5

bundled_ffi_supportedFunction · 0.85
configure_libraryFunction · 0.85
warnFunction · 0.70
bFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…