Hi, When compiling GCC for targets like nvptx-none that require newlib, we need to put newlib-cygwin/newlib in the root directory of the source tree (either a copy or a symlink), which is then built by GCC when targeting offload devices like the above. Changes made in newlib shouldn't affect GCC, so I think we should include newlib in this case.
Regards, Arijit Kumar Das On Mon, 2 Jun, 2025, 1:10 am Arijit Kumar Das, < arijitkdgit.offic...@gmail.com> wrote: > newlib sources are not a part of GCC so should be ignored, if present. > > Signed-off-by: Arijit Kumar Das <arijitkdgit.offic...@gmail.com> > --- > .gitignore | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/.gitignore b/.gitignore > index 7150fc3b29c..5ae6a5a08d6 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -74,3 +74,6 @@ stamp-* > > # ADDITIONS from GCCRS front-end > libgrust/*/target/ > + > +# newlib sources are not a part of GCC so should be ignored, if present > as a symlink > +newlib > -- > 2.39.5 > >