diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-04-12 12:06:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 12:06:41 -0400 |
| commit | eda9dd33647b271dd5ea5256e87cb23ad269b19f (patch) | |
| tree | fb869c983b5eda00794606caeb6334ac176d359a /source/compiler-core/slang-artifact-desc-util.cpp | |
| parent | 4e9ca28a71dca90e19a15b2103bdc3d0db6ffd9c (diff) | |
Artifact Container (#2783)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP simplifying artifact interface.
* Use ContainedKind.
* Remove LazyCastableList.
Use ContainedKind for find.
* Remove ICastableList.
* Remove need for ICastableList.
* Remove IArtifactContainer.
* Small fixes.
* Small improvements around Artifact.
* Make explicit find is for *representations* that can cast.
Fix bug in handling casting in lookup.
* Made associated items artifacts too.
* Small fixes.
* Small improvements around writing a container.
* WIP artifact container format.
* Make the root a special case.
* Special case if the artifact doesn't have children/associated.
Diffstat (limited to 'source/compiler-core/slang-artifact-desc-util.cpp')
| -rw-r--r-- | source/compiler-core/slang-artifact-desc-util.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/compiler-core/slang-artifact-desc-util.cpp b/source/compiler-core/slang-artifact-desc-util.cpp index da97ce3f5..fb1c2dbd2 100644 --- a/source/compiler-core/slang-artifact-desc-util.cpp +++ b/source/compiler-core/slang-artifact-desc-util.cpp @@ -732,6 +732,16 @@ SlangResult ArtifactDescUtil::appendDefaultExtension(const ArtifactDesc& desc, S out << "json"; return SLANG_OK; } + case ArtifactKind::CompileBinary: + { + if (isDerivedFrom(desc.payload, ArtifactPayload::SlangIR) || + isDerivedFrom(desc.payload, ArtifactPayload::SlangAST)) + { + out << "slang-module"; + return SLANG_OK; + } + break; + } default: break; } |
