diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2022-06-24 16:08:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-24 16:08:08 -0400 |
| commit | f1b41a71be938b8711ee0fff0130185f512d2336 (patch) | |
| tree | 29ad602a61968e1aacdf8424afc0c89defdb4330 /source/compiler-core/slang-artifact.h | |
| parent | c12c0ad7fbb0272283f224493dbc28d9d60e7b91 (diff) | |
Handling of temporary files (#2299)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Work around windows issue with temporary file clash.
* Handle the temporary file path actually creates a file.
* Fix typo.
* Fix typo in linux for temporary file.
* Add unit test for io. Tests generateTemporary operation.
Diffstat (limited to 'source/compiler-core/slang-artifact.h')
| -rw-r--r-- | source/compiler-core/slang-artifact.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/compiler-core/slang-artifact.h b/source/compiler-core/slang-artifact.h index 91f8bec37..362dac16f 100644 --- a/source/compiler-core/slang-artifact.h +++ b/source/compiler-core/slang-artifact.h @@ -176,8 +176,8 @@ SLANG_INLINE ArtifactKeep getIntermediateKeep(ArtifactKeep keep) { return (keep enum ArtifactPathType { None, - Temporary, - Existing, + Temporary, ///< Is a temporary file + Existing, ///< Is an existing file }; /* The IArtifactInstance interface represents a single instance of a type that can be part of an artifact. It's special in so far @@ -383,6 +383,7 @@ protected: PathType m_pathType = PathType::None; ///< What the path indicates String m_path; ///< The path + String m_temporaryLockPath; ///< The temporary lock path ComPtr<ISlangBlob> m_blob; ///< Blob to store result in memory |
