diff options
| author | Anders Leino <aleino@nvidia.com> | 2025-03-10 08:34:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 06:34:35 +0000 |
| commit | b59d15539d65472c0e5a89e390ad02b98da61e95 (patch) | |
| tree | 6178049a0c8d8248b3c24c503f46e4473e094228 /source/slang/slang-options.cpp | |
| parent | a3a9ffefdd54fdddeb2efde240d2599645280663 (diff) | |
Sharpen condition on warning about used capabilities relative to selected profile (#6538)
If the profile/capability in options set, but set to unknown, then don't count the
setting as requesting a particular profile/capability.
This helps in addressing issue #4760 because the new session-based compilation API always
adds a profile setting via Linkage::addTarget, even if the profile is unknown.
That caused lots of tests to fail due to unexpected output:
"warning 41012: entry point 'computeMain' uses additional capabilities that are not part of the specified profile..."
The old compilation request -based API did not add profile/capabiltiy to the options, and
so did not generate this warning.
Diffstat (limited to 'source/slang/slang-options.cpp')
0 files changed, 0 insertions, 0 deletions
