[Ada] Take into account GNSA_ROOT env var for prefix
authorJohannes Kanig <kanig@adacore.com>
Thu, 24 Feb 2022 10:47:47 +0000 (19:47 +0900)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 13 May 2022 08:04:38 +0000 (08:04 +0000)
commit17a89d82142be1fd9d9a8a584977f41204e13463
tree6b86b5dab9c110d50ad91938feb1cda1c46beff2
parentb77029ff250b7a6b0a8f07aa0c4199adca2f4e91
[Ada] Take into account GNSA_ROOT env var for prefix

The GNSA_ROOT environment variable can be used to indicate to the
compiler how to find the runtime directory.

gcc/ada/

* osint.ads, osint.adb (Relocate_Path): If the GNSA_ROOT
environment variable is set, we use that as the prefix, instead
of computing the prefix from the executable location.
gcc/ada/osint.adb
gcc/ada/osint.ads