From: Artur Pietrek Date: Mon, 19 May 2025 12:33:28 +0000 (+0200) Subject: ada: Add GNAT LLVM selection in GPR project file. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f311c9f3412f9266db12230fae76f6aa5d949619;p=thirdparty%2Fgcc.git 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 --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 b99eba7537c..fdf19481a6f 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 c706d8b555f..6cd0bed8d67 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