Simon Wright <[email protected]> writes:

> I've just updated mtn as below. The bigger change to gpr_query,
> necessary to support non-host target and RTS, was to remove some more
> of the customisation round GNATCOLL.

Ok. I had forgotten that was more workaround code; it wasn't labeled as
such.

Your changes work for my use cases.

> I see I haven't noted that (if you're using GNAT GPL 2016/FSF GCC 6)
> you *have* to use gpr_query (well, if you have a hosted
> single-directory development you might get away without!)

We could check the gnat version and issue a warning. That could be done
at load time, when we set the default value of ada-xref-tool (bottom of
ada-mode.el); if gpr_query executable is on PATH, set ada-xref-tool to
'gpr-query; otherwise check gnat version, and either use ada-gnat-xref,
or warn.


For compiling gpr_query, we could include gpr_query.adb and
gpr_query.gpr in ELPA; then the user needs to do:

cd ~/.emacs.d/elpa/ada-mode-nnn
gprbuild -P gpr_query

Then we need some magic to install the executable in the right place. I
thought there was a "gnatinstall", but I don't see it in gnat 2016. A
short POSIX shell script would work.

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to