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

Remove lwIP from src/inet deps in socket builds #7785

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Jun 21, 2021

Problem

We're getting a bunch of lwIP #defines in Linux builds, even though
these builds don't use lwIP.

Change overview

Fix the src/inet dependency to check chip_system_config_use_lwip,
which controls whether CHIP uses lwIP in its networking abstractions.

This requires annotating some conditional #includes with // nogncheck
to avoid false positives, because the checker doesn't preprocess the file.

Testing

Check defines via gn gen out/host && gn desc out/host //src/lib defines

Run build via ./gn_build.sh

We're getting a bunch of lwIP #defines in Linux builds, even though
these builds don't use lwIP. Fix the src/inet dependency to check
chip_system_config_use_lwip, which controls whether CHIP uses lwIP in
its networking abstractions.

This requires annotating some conditional #includes with // nogncheck
because the checker doesn't preprocess the file.
@andy31415 andy31415 merged commit 40d264b into project-chip:master Jun 21, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
We're getting a bunch of lwIP #defines in Linux builds, even though
these builds don't use lwIP. Fix the src/inet dependency to check
chip_system_config_use_lwip, which controls whether CHIP uses lwIP in
its networking abstractions.

This requires annotating some conditional #includes with // nogncheck
because the checker doesn't preprocess the file.
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