This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GNAT: automatically build source generation tools


> I'm a little confused why the temporary directory is necessary, but
> I'll take your word for it.  [...]

! # target independant source files. They are built with the gnatmake
! # provided by the build compiler, and in a separate directory to avoid
! # any interference with the new sources and objects.

I'll expand my comment here. The idea is that if you -I srcdir, you'll
get in the way runtime sources of the new compiler, and they don't mix
with those of the build compiler. By using the build dir, you get
objects and ALI files of the new compiler, bad too. Hence we need a
clean directory (or may be it can be done with complicated flags, I
found the tmp-dir just simpler).

I'll wait for ACT input on this, and resubmit a patch later today
incorporating your fixes.

Thanks for your comments!

-- 
Laurent Guerby <guerby@acm.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]