Skip to content

Commit

Permalink
Merge branch 'topic/libadalang-internal-testsuite/9' into 'master'
Browse files Browse the repository at this point in the history
Name resolution driver: add support for nameres RTS switch

See merge request eng/libadalang/libadalang!1509
  • Loading branch information
thvnx committed Jan 18, 2024
2 parents 939e02a + 9a298b4 commit ebcdb34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testsuite/drivers/name_resolution_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class NameResolutionDriver(BaseDriver):
* ``traverse_generics``: Boolean (false by default): whether to pass the
``--traverse-generics`` switch to ``nameres``.
* ``runtime_name``: Name of the runtime to use when loading the project
(``--RTS`` nameres switch).
"""

perf_supported = True
Expand Down Expand Up @@ -140,6 +143,10 @@ def run(self):
if self.test_env.get("traverse_generics"):
args.append("--traverse-generics")

runtime_name = self.test_env.get("runtime_name")
if runtime_name:
args.append(f"--RTS={runtime_name}")

# Add optional explicit list of sources to process
args += input_sources

Expand Down

0 comments on commit ebcdb34

Please sign in to comment.