Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: modules: thrift: Add newlib filter to samples.yaml #57097

Merged
merged 1 commit into from
May 4, 2023

Conversation

galak
Copy link
Collaborator

@galak galak commented Apr 20, 2023

Not all toolchains support newlib so tests that require newlib need to have a filter to we don't try and build those tests on those testcases. Add the following to samples.yaml to handle the issue:

filter: TOOLCHAIN_HAS_NEWLIB == 1

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will block this until #54637 is merged since that PR introduces a new way of filtering by full libc availability.

cfriedt
cfriedt previously approved these changes Apr 22, 2023
Copy link
Member

@cfriedt cfriedt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - reminds me to try out picolibc. I don't think it was as ready when we initially introduced this feature.

@keith-packard
Copy link
Collaborator

Does this test just need REQUIRES_FULL_LIBCPP? We'd need to add a prompt to that.

@cfriedt
Copy link
Member

cfriedt commented Apr 24, 2023

@galak - please revisit the pr mentioned above by Stephanos

@cfriedt
Copy link
Member

cfriedt commented Apr 25, 2023

@galak - minor changes needed here

@galak galak force-pushed the filter-thrift branch from 640dd60 to 60628c7 Compare May 1, 2023 19:48
@galak galak added the DNM This PR should not be merged (Do Not Merge) label May 1, 2023
@zephyrbot zephyrbot requested a review from alexanderwachter May 1, 2023 19:48
@@ -1,12 +1,10 @@
# CONFIG_LIB_CPLUSPLUS Dependencies
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n
CONFIG_REQUIRES_FULL_LIBCPP=y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might even be better to move this to select REQUIRES_FULL_LIBCPP in modules/thrift/Kconfig.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish there were an ISO C code generator upstream (instead of the one that depends on glib)

@cfriedt
Copy link
Member

cfriedt commented May 2, 2023

LGTM other than the one suggestion above. Filters are good as well - that will speed up CI.

Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#57445 has been merged. Needs a rebase.

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]>
@galak galak force-pushed the filter-thrift branch from 60628c7 to 3ef004b Compare May 3, 2023 12:49
@galak galak removed the DNM This PR should not be merged (Do Not Merge) label May 3, 2023
@galak galak requested review from cfriedt and stephanosio May 3, 2023 12:51
@galak
Copy link
Collaborator Author

galak commented May 3, 2023

#57445 has been merged. Needs a rebase.

rebased, removed DNM.

@cfriedt cfriedt merged commit 0bae215 into zephyrproject-rtos:main May 4, 2023
@galak galak deleted the filter-thrift branch May 4, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants