-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add_project_dependencies() ignores 'preserve' include_type property #13858
Comments
This is your daily reminder that -isystem is a flag for controlling the |
Actually not. Anyway, it's an off-topic discussion that does not belittle the importance of this issue. |
It is literally not documented to silence warnings, even as a side effect of the thing it is actually documented to do. You have no guarantee that it will or won't do any such thing. In return for this, you break the C++ compilation model.
If there is no real world use case of this "feature" then that affects whether people are interested in working on it. Patches welcome, I guess. |
I think, the documentation says for itself: https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html All warnings, other than those generated by ‘#warning’ (see Diagnostics), are suppressed while GCC is processing a system header.
I have a problem understanding what compilation model you are referring to. Could you please elaborate for the sake of completeness of the discussion?
If this is an acknowledgment of the bug, I am happy to prepare the patches. |
…clude_dirs() Closes: mesonbuild#13858
…clude_dirs() Closes: mesonbuild#13858
Describe the bug
If the dependency passed to add_project_dependencies has 'preserve' include_type property (default), Meson downgrades it to 'non-system'
To Reproduce
Related code: https://github.com/mesonbuild/meson/blob/6736a54/mesonbuild/interpreter/interpreter.py#L2961-L2966
Expected behavior
Meson produces
-isystemthird_party/my_3p_dep
cmdline argument instead of-Ithird_party/my_3p_dep
system parameters
The text was updated successfully, but these errors were encountered: