1beb978492
Disable -Werror to fix the following build failure with gcc 11:
/data/buildroot-autobuilder/instance-0/output-1/build/host-flatcc-0.6.0/include/flatcc/reflection/flatbuffers_common_builder.h: In function 'flatbuffers_char_array_copy_from_pe':
/data/buildroot-autobuilder/instance-0/output-1/build/host-flatcc-0.6.0/include/flatcc/reflection/flatbuffers_common_builder.h:341:3: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
341 | for (i = 0; i < n; ++i) N ## _copy_from_pe(&p[i], &p2[i]); return p; }\
| ^~~
An other option would have been to retrieve the following upstream
commit:
f8c4140dd9
but disabling -Werror is more future-proof
Fixes:
- http://autobuild.buildroot.org/results/4d5cdddbfeefdeb943234b76eb08b04376f3c36d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
33 lines
1001 B
Makefile
33 lines
1001 B
Makefile
################################################################################
|
|
#
|
|
# FLATCC
|
|
#
|
|
################################################################################
|
|
|
|
FLATCC_VERSION = 0.6.0
|
|
FLATCC_SITE = $(call github,dvidelabs,flatcc,v$(FLATCC_VERSION))
|
|
FLATCC_LICENSE = Apache-2.0
|
|
FLATCC_LICENSE_FILES = LICENSE
|
|
FLATCC_INSTALL_STAGING = YES
|
|
FLATCC_DEPENDENCIES = host-flatcc
|
|
FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
|
|
HOST_FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
|
|
|
|
# Disable build of tests and samples
|
|
FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
|
|
HOST_FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
|
|
|
|
# Enable install targets
|
|
FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
|
|
HOST_FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
|
|
|
|
# compiler is named flatcc or flatcc_d depending on BR2_ENABLE_DEBUG value
|
|
define FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
|
rm $(TARGET_DIR)/usr/bin/flatcc*
|
|
endef
|
|
|
|
FLATCC_POST_INSTALL_TARGET_HOOKS += FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|