Ludovic Brenta <[email protected]> writes: > Stephen Leake wrote: >> Evgeniy Turishev writes: >> >>> There is patch for using gnatfind. >> >> More precisely, using gnatfind without a GNAT project file. >> >> Why do you need to do that? >> >> Why are you not using a GNAT project file? > > First, I'd like to thank Evgeniy for this patch; I have applied it at > work (Eurocontrol) and it works well. We don't use GNAT project files > either. We generate some GNAT project files automatically (one per > subsystem) but the generation doesn't take the specificities of some > subsystems into account and our configuration and build management > infrastructure is... rather complex and rather non-standard.
So I guess I can summarize this as "for legacy reasons", or possibly "for integrating with other tools". However, nothing says you have to use the same .gpr file for the actual compilation and the Emacs Ada mode project file. > It is > simpler for us to use $ADA_OBJECTS_PATH, which we also generate > automatically, than to fix our GNAT project file generators. Which I guess rules out using a .gpr for the Ada mode project file. So you now have a line like: obj_dir=$ADA_OBJECTS_PATH in your Emacs Ada mode .prj file? Or does gnatfind see the env var directly? Evgeniy; is setting ADA_OBJECTS_PATH a reasonable workaround for you? I would prefer to make it both more general (to support other options required by users, for example -nostdinc and --RTS=) and more specific to gnat find: gnatfind_opts=-aO$ADA_OBJECTS_PATH 'gnatfind_opts' would be a list. Would that work? I'm assuming you are not using the Ada mode commands to do the actual compiling, so you don't need obj_dir for that. That would generalize to any other tool run; gprbuild_opts, gnatstub_opts, gnatkrunch_opts, gpr_query_opts. Are there any other Ada mode 4.x features that you would like to see brought back? I gather neither of you have tried the more powerful cross reference tool gpr_query, which requires a gpr file. To motivate that, I should provide a list of the cross reference features that gnatfind does not support. I can easily spot three differences; gpr_query supports: C and C++ source code ada-xref-overriding-function ada-xref-overridden-function there may also be other differences. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
