Skip to content

Commit

Permalink
samples: modules: thrift: filter on CONFIG_FULL_LIBCPP_SUPPORTED
Browse files Browse the repository at this point in the history
Change sample to set CONFIG_FULL_LIBCPP_REQUIRED and to filter on
CONFIG_FULL_LIBCPP_SUPPORTED.  Since not all toolchains provide a
full libc++ this will restrict the sample only to those environments
that do.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak authored and cfriedt committed May 4, 2023
1 parent 2b4fdd1 commit 0bae215
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions samples/modules/thrift/hello/client/prj.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# CONFIG_LIB_CPLUSPLUS Dependencies
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_REQUIRES_FULL_LIBCPP=y

# CONFIG_THRIFT Dependencies
CONFIG_CPP=y
CONFIG_STD_CPP17=y
CONFIG_CPP_EXCEPTIONS=y
CONFIG_EXTERNAL_LIBCPP=y
CONFIG_POSIX_API=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
Expand Down
1 change: 1 addition & 0 deletions samples/modules/thrift/hello/client/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ common:
modules:
- thrift
platform_allow: mps2_an385 qemu_x86_64
filter: CONFIG_FULL_LIBCPP_SUPPORTED
tests:
sample.thrift.hello.server.binaryProtocol: {}
sample.thrift.hello.server.compactProtocol:
Expand Down
4 changes: 1 addition & 3 deletions samples/modules/thrift/hello/server/prj.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Need a full libc++
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_REQUIRES_FULL_LIBCPP=y

# CONFIG_THRIFT Dependencies
CONFIG_CPP=y
CONFIG_STD_CPP17=y
CONFIG_CPP_EXCEPTIONS=y
CONFIG_EXTERNAL_LIBCPP=y
CONFIG_POSIX_API=y
CONFIG_NET_SOCKETPAIR=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
Expand Down
1 change: 1 addition & 0 deletions samples/modules/thrift/hello/server/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ common:
modules:
- thrift
platform_allow: mps2_an385 qemu_x86_64
filter: CONFIG_FULL_LIBCPP_SUPPORTED
tests:
sample.thrift.hello.server.binaryProtocol: {}
sample.thrift.hello.server.compactProtocol:
Expand Down

0 comments on commit 0bae215

Please sign in to comment.