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

Function bundled_ffi_supported

configure.py:2326–2340  ·  view source on GitHub ↗
(os_name, target_arch)

Source from the content-addressed store, hash-verified

2324 configure_library('sqlite', o, pkgname='sqlite3')
2325
2326def bundled_ffi_supported(os_name, target_arch):
2327 if target_arch == 'x86':
2328 target_arch = 'ia32'
2329
2330 if target_arch in {'arm', 'arm64', 'ia32', 'x64', 'x86_64',
2331 'riscv64', 'loong64'}:
2332 return True
2333
2334 if target_arch in {'mips', 'mipsel', 'mips64el'}:
2335 return os_name in {'freebsd', 'linux', 'openbsd'}
2336
2337 if target_arch == 'ppc64':
2338 return os_name in {'aix', 'freebsd', 'linux', 'mac', 'openbsd'}
2339
2340 return False
2341
2342def configure_ffi(o):
2343 use_ffi = not options.without_ffi

Callers 1

configure_ffiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…