diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-27 18:39:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-28 09:39:44 +0800 |
| commit | 84dc318576e19ef1f86f6b012ba911c4b63f788d (patch) | |
| tree | d7c70603509eebfeeb203ec527b71ce92eae59c1 /source/slang | |
| parent | ca1f93a916ce6b984cba402c8d3710988f2b618f (diff) | |
Don't touch output file if content did not change. (#2738)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-artifact-output-util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-artifact-output-util.cpp b/source/slang/slang-artifact-output-util.cpp index e9cfe6615..bcf145420 100644 --- a/source/slang/slang-artifact-output-util.cpp +++ b/source/slang/slang-artifact-output-util.cpp @@ -176,7 +176,7 @@ static SlangResult _requireBlob(IArtifact* artifact, DiagnosticSink* sink, ComPt { if (ArtifactDescUtil::isText(desc)) { - return File::writeNativeText(path, data, size); + return File::writeAllTextIfChanged(path, UnownedStringSlice((const char*)data, size)); } else { |
