https://gcc.gnu.org/g:f311c9f3412f9266db12230fae76f6aa5d949619
commit r16-1872-gf311c9f3412f9266db12230fae76f6aa5d949619 Author: Artur Pietrek <piet...@adacore.com> Date: Mon May 19 14:33:28 2025 +0200 ada: Add GNAT LLVM selection in GPR project file. gcc/ada/ChangeLog: * doc/gnat_ugn/building_executable_programs_with_gnat.rst: add GNAT LLVM explicit selection in GPR file * gnat_ugn.texi: Regenerate. Diff: --- gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst | 3 +++ gcc/ada/gnat_ugn.texi | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst index b99eba7537cb..fdf19481a6fc 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -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 diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index c706d8b555f0..6cd0bed8d673 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -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