[Buildroot] [PATCH v1] package/protozero: disable test wchar support
Maxim Kochetkov
fido_max at inbox.ru
Wed Apr 21 10:04:11 UTC 2021
Reviewed-by: Maxim Kochetkov <fido_max at inbox.ru>
19.04.2021 00:13, Peter Seiderer пишет:
> No option to disable test compile available, but catch wchar support
> can be disabled with CATCH_CONFIG_NO_WCHAR define.
>
> Fixes:
>
> - http://autobuild.buildroot.net/results/1cd24b757d87b963c70bc7ff927c6d983d0b142a
>
> .../build/protozero-1.7.0/test/catch/catch.hpp:1691:29: error: 'wstring' is not a member of 'std'
> 1691 | struct StringMaker<std::wstring> {
> | ^~~~~~~
>
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
> package/protozero/protozero.mk | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/package/protozero/protozero.mk b/package/protozero/protozero.mk
> index e4ce1a4730..48ce04ffe0 100644
> --- a/package/protozero/protozero.mk
> +++ b/package/protozero/protozero.mk
> @@ -10,6 +10,9 @@ PROTOZERO_LICENSE = BSD-2-Clause, Apache-2.0
> PROTOZERO_LICENSE_FILES = LICENSE.md LICENSE.from_folly
> PROTOZERO_INSTALL_STAGING = YES
>
> +PROTOZERO_CONF_OPTS += \
> + -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -DCATCH_CONFIG_NO_WCHAR=1"
> +
> ifeq ($(BR2_PACKAGE_PROTOBUF),y)
> PROTOZERO_DEPENDENCIES += protobuf
> endif
>
More information about the buildroot
mailing list