xref: /OK3568_Linux_fs/buildroot/package/quickjs/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_QUICKJS
2	bool "quickjs"
3	depends on !BR2_nios2 # fenv.h lacks FE_{DOWN,UP}WARD on nios2
4	depends on !BR2_STATIC_LIBS
5	# No way to check for fenv support.
6	depends on !BR2_TOOLCHAIN_USES_UCLIBC
7	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
8	depends on BR2_HOST_GCC_AT_LEAST_4_9 # C11/stdatomic.h
9	depends on BR2_USE_MMU # fork()
10	help
11	  QuickJS is a small and embeddable Javascript engine.
12	  It supports the ES2020 specification including modules,
13	  asynchronous generators, proxies and BigInt.
14
15	  https://bellard.org/quickjs/
16
17comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, host gcc >= 4.9, dynamic library"
18	depends on !BR2_nios2
19	depends on BR2_USE_MMU
20	depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || \
21		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_4_9
22