Skip to contentSkip to conversation

package/protozero: disable test wchar support

PATCH New Peter Seiderer 2 participants 2 messages Apr 18, 2021 – Apr 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/protozero: disable test wchar support

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> {
| ^~~~~~~

---
 package/protozero/protozero.mk | 3 +++
 1 file changed, 3 insertions(+)
package/protozero/protozero.mk +3 -0
index e4ce1a4730..48ce04ffe0 100644
@@ -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
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 package/protozero: disable test wchar support

19.04.2021 00:13, Peter Seiderer ?????:

Quoted 31 lines

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> {
         |                             ^~~~~~~
---
  package/protozero/protozero.mk | 3 +++
  1 file changed, 3 insertions(+)
package/protozero/protozero.mk +3 -0
index e4ce1a4730..48ce04ffe0 100644
@@ -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