diff options
Diffstat (limited to 'source/compiler-core/slang-artifact-desc-util.cpp')
| -rw-r--r-- | source/compiler-core/slang-artifact-desc-util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/compiler-core/slang-artifact-desc-util.cpp b/source/compiler-core/slang-artifact-desc-util.cpp index 413858c32..69a9b66f1 100644 --- a/source/compiler-core/slang-artifact-desc-util.cpp +++ b/source/compiler-core/slang-artifact-desc-util.cpp @@ -651,9 +651,9 @@ UnownedStringSlice ArtifactDescUtil::getDefaultExtension(const ArtifactDesc& des Index pos = Path::findLastSeparatorIndex(basePath); if (pos >= 0) { - outPath.append(basePath.head(pos)); - outPath.append(Path::kPathDelimiter); - + // Keep the stem including the delimiter + outPath.append(basePath.head(pos + 1)); + // Get the baseName baseName = basePath.tail(pos + 1); } |
