Hi Iain, > On 18 Aug 2020, at 13:45, Iain Buclaw <ibuc...@gdcproject.org> wrote: > > Attached is the change as per your proposal. > > * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Replace -nostdinc > with -fself-tests. > #undef VXWORKS_ADDITIONAL_CPP_SPEC > #define VXWORKS_ADDITIONAL_CPP_SPEC \ > - "%{!nostdinc: \ > + "%{!fself-test=*: \ > %{isystem*} \ > %{mrtp: -idirafter %:getenv(VSB_DIR /h) \ > -idirafter %:getenv(VSB_DIR /share/h) \ > @@ -55,7 +60,7 @@ along with GCC; see the file COPYING3. If not see > > #undef VXWORKS_ADDITIONAL_CPP_SPEC > #define VXWORKS_ADDITIONAL_CPP_SPEC \ > - "%{!nostdinc: \ > + "%{!fself-test=*: \
Thanks for the updated proposal. Sorry, I have been unclear: If I'm reading the spec of -nostdinc correctly, I think we should still prevent those CPP switches from being added if the option is provided. Can you please amend just this part to prevent the addition of the following switches if either -nostdinc or -fself-test is provided ? Ok, for me with this change, assuming -nostdinc in SELFTEST_FLAGS didn't have other uses than the one documented in the attached comment (I'm not familiar enough with the self-tests to know for sure). Thanks! Olivier