From 20ea33f3321738e7c1b4cad7bdcaedcdb54dd0f0 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 11 Apr 2023 10:18:18 -0400 Subject: Artifact simplification (#2781) * #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. --- source/compiler-core/slang-dxc-compiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/compiler-core/slang-dxc-compiler.cpp') diff --git a/source/compiler-core/slang-dxc-compiler.cpp b/source/compiler-core/slang-dxc-compiler.cpp index 248d8d118..a39503b13 100644 --- a/source/compiler-core/slang-dxc-compiler.cpp +++ b/source/compiler-core/slang-dxc-compiler.cpp @@ -640,7 +640,9 @@ SlangResult DXCDownstreamCompiler::compile(const CompileOptions& inOptions, IArt } auto artifact = ArtifactUtil::createArtifactForCompileTarget(options.targetType); - artifact->addAssociated(diagnostics); + + ArtifactUtil::addAssociated(artifact, diagnostics); + if (dxcResultBlob) { artifact->addRepresentationUnknown((ISlangBlob*)dxcResultBlob.get()); -- cgit v1.2.3