package/quickjs: disable on nios2
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 14 Apr 2021 21:26:08 +0000 (23:26 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 15 Apr 2021 19:07:35 +0000 (21:07 +0200)
quickjs unconditionally uses FE_{DOWN,UP}WARD and so fails to build on
nios2 since its addition in commit
5d50793659acb95050c110d5fc05399df20ce30b

Fixes:
 - http://autobuild.buildroot.org/results/69e280a7f478d1b16be989c7bd559f766053134b
 - http://autobuild.buildroot.org/results/f2c3ef7e3bbe30ac24710288336adabebd8b83a6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/quickjs/Config.in

index 5c3b068c3aab3c73458fff6b478487438f41e39b..dc466241bac0b6a1c1410a364e5f1a5362591cee 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_QUICKJS
        bool "quickjs"
+       depends on !BR2_nios2 # fenv.h lacks FE_{DOWN,UP}WARD on nios2
        depends on !BR2_STATIC_LIBS
        # No way to check for fenv support.
        depends on !BR2_TOOLCHAIN_USES_UCLIBC
@@ -14,6 +15,7 @@ config BR2_PACKAGE_QUICKJS
          https://bellard.org/quickjs/
 
 comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, host gcc >= 4.9, dynamic library"
+       depends on !BR2_nios2
        depends on BR2_USE_MMU
        depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || \
                !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_4_9