[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:31:05 EST 2022
On Wed, Nov 30, 2022 at 3:10 PM Lan Yang <lanyang at autox.ai> wrote:
> 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
>
Hi scons users,
I would like to add a link to the source project compiled using scons:
https://github.com/RT-Thread/rt-thread
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/c83b300b/attachment.htm>
More information about the Scons-users
mailing list