diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-04-26 12:43:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-26 12:43:28 -0400 |
| commit | f9432467cac85eae6f7120cd94208f3a3dd9aa19 (patch) | |
| tree | 1370c70a0159a1f8dd89cc8c86db930f556bdc5d /source/slang/slang-options.cpp | |
| parent | 79dd12c21e8f5c5ce01051a280679cf6ac8ffe97 (diff) | |
Improvements around Artifacts (#2192)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Compile to a dxil library.
* Added CompileProduct.
* Support handling of ModuleLibrary.
* CacheBehavior -> Cache
* Use CompileProduct for -r references.
* CompileProduct -> Artifact.
* Determining an artifact type on binding.
* Determine binary linkability.
* Added Artifact::exists.
* Added ArtifactKeep.
* Small fixes.
* Small improvements to Artifact.
* Add zip extension.
* Fix some comments.
* Fix multiple adding of PublicDecoration.
Make public output export for DXIL/lib.
Add checking for simpleDecorations such that only added once.
* Use 'whole program' to identify library build.
* Move slang-artifact into compiler-core.
* Split out Keep free functions.
* Artifact::Keep -> ArtifactKeep.
* Handle libraries as artifacts.
* Add -target dxil so test infrastructure knows it needs DXC.
* Linking working in DXC.
* Improve handling around emit for 'export'.
* Add comment around Artifact name.
* Render test working with linking.
* Improvements around Artifact handling.
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 4c7234753..b02c25549 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -1422,8 +1422,11 @@ struct OptionsParser return SLANG_FAIL; } + const String name = Artifact::getBaseNameFromPath(desc, referenceModuleName.value.getUnownedSlice()); + // Create the artifact - RefPtr<Artifact> artifact = new Artifact(desc); + RefPtr<Artifact> artifact = new Artifact(desc, name); + // Set the path artifact->setPath(Artifact::PathType::Existing, referenceModuleName.value); |
