]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Add GNAT LLVM selection in GPR project file.
authorArtur Pietrek <pietrek@adacore.com>
Mon, 19 May 2025 12:33:28 +0000 (14:33 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 1 Jul 2025 08:29:43 +0000 (10:29 +0200)
gcc/ada/ChangeLog:

* doc/gnat_ugn/building_executable_programs_with_gnat.rst: add
GNAT LLVM explicit selection in GPR file
* gnat_ugn.texi: Regenerate.

gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/gnat_ugn.texi

index b99eba7537cb9ca2aaf784c1ed51ca5815448927..fdf19481a6fc85bfd9a14c59774e8ab6a633cea6 100644 (file)
@@ -8128,6 +8128,9 @@ We provide two options that you can use to build code with GNAT LLVM:
   which version of GNAT built that file because it contains either
   :code:`GNAT` or :code:`GNAT-LLVM`.
 
+  You can also explicitly select GNAT LLVM in your existing GPR project
+  file by adding :code:`for Toolchain_Name("Ada") use "GNAT_LLVM";`
+
 .. only:: PRO
 
     If your project uses one of the libraries packaged with the GCC
index c706d8b555f0c4a66b7921a75f52fee104225cf8..6cd0bed8d673d375bb727c3739a69b2dc28a074d 100644 (file)
@@ -17664,6 +17664,9 @@ file with @code{gprconfig} and using it with @code{gprbuild}; see the
 can determine from the first line of the @code{.ali} file
 which version of GNAT built that file because it contains either
 @code{GNAT} or @code{GNAT-LLVM}.
+
+You can also explicitly select GNAT LLVM in your existing GPR project
+file by adding @code{for Toolchain_Name("Ada") use "GNAT_LLVM";}
 @end itemize