summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2025-03-12 09:55:19 +0200
committerGitHub <noreply@github.com>2025-03-12 07:55:19 +0000
commit7a942cfdc338d199b8e775d16b0b9b49699363d7 (patch)
tree1be27685600237a8fff918a9a7094036ed289f96 /tools
parent133d705dcaa69f10f7a713605d5080405e49875c (diff)
Add referenced modules as libraries when creating a session (#6569)
In the legacy compile request based API, the referenced modules are added to the request's linkage libraries as part of compiler option parsing. In the non-legacy compilation API, the argument parsing creates a temprary compile request and so those libraries only survive as options. This change will look for such options when creating an ISession object, and again add the referenced modules to the libraries of the new linkage that's contained in the ISession object. This is done in two steps: 1. Factor out a helper to create a referenced module artifact in the same way as it's done during legacy option parsing. 2. Use the helper function to create artifacts to add to the linkage libararies, when the session is created. This helps to address issue #4760, because it enables passing in downstream modules via options, as is required for the following tests: tests/library/library-test.slang.2 (dx12) tests/library/export-test.slang.2 (dx12)
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions