[Scons-users] How to use -isystem instead of -I to include directories of third-party projects in scons?
Lan Yang
lanyang at autox.ai
Wed Nov 30 02:10:20 EST 2022
Hi scons users,
1. My question is:
how to use -isystem instead of -I to include directories of third-party
projects in scons?
2. Question's background:
Recently, I found that by adding -Wall and -Wextra to CFLAGS can raise the
compilation warning level.
And this exposes some hidden bugs.
But I do not wish to edit the warnings in the 3rd party code.
So I found a gcc's solution in stack-overflow:
https://stackoverflow.com/questions/15053776/how-do-you-disable-the-unused-variable-warnings-coming-out-of-gcc-in-3rd-party-c
The top solution recommends me keeping the warning on, but use -isystem
instead of -I to include directories of third-party projects.
Then I used the "scons --verbose" and found that the scons used "-I" by
default.
Best regards,
Lan
--
*CONFIDENTIALITY NOTICE: The contents of this email and any attachments
are intended solely for the addressee(s) and contain confidential and/or
privileged information and are legally protected from disclosure unless
otherwise indicated. If you received this message by mistake, please
immediately alert the sender by reply email and then delete this message
and any attachments. If you are not the intended recipient, you are hereby
notified that any use, dissemination, copying, or storage of this message
or its attachments is strictly prohibited. *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20221130/d0bbbff1/attachment.htm>
More information about the Scons-users
mailing list