-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
gn_build.sh compilation failure happens after PR 7080 landed #7200
Comments
bzbarsky-apple
added a commit
to bzbarsky-apple/connectedhomeip
that referenced
this issue
May 27, 2021
…hip#7080)" This reverts commit c8f286f because the result does not compile. Fixes project-chip#7200
mspang
added a commit
to mspang/connectedhomeip
that referenced
this issue
May 27, 2021
Add a preprocessor condition to avoid including <lib/shell/Engine.h> when shell integration is disabled. Unfortunately, since the checker doesn't preprocess the code, this results in a false positive. Suppress that with // nogncheck. fixes project-chip#7200
This requires a bit of understanding how the checker works
Adding a preprocessor condition around the #include makes the code correct. Unfortunately, another limitation of the checking is that it doesn't preprocess the code so there will be a false positive. For such cases, there is a suppression available - the conditional include can be tagged with // nogncheck |
mspang
added a commit
to mspang/connectedhomeip
that referenced
this issue
May 27, 2021
Add a preprocessor condition to avoid including <lib/shell/Engine.h> when shell integration is disabled. Unfortunately, since the checker doesn't preprocess the code, this results in a false positive. Suppress that with // nogncheck. fixes project-chip#7200
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
see gn_build.sh compilation failure happens after PR 7080 landed, after reverting, it works.
-- Build: GN configure
'--------------------------------
ERROR at //examples/platform/linux/AppMain.cpp:28:11: Include not allowed.
#include <lib/shell/Engine.h>
^-----------------
It is not in any dependency of
//examples/platform/linux:app-main
The include file is in the target(s):
//src/lib/shell:shell_core
which should somehow be reachable.
The text was updated successfully, but these errors were encountered: