diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-04-12 10:17:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-12 10:17:28 -0700 |
| commit | 565a871ad899c01dc6a1b4bdb1b9d2bc4281758f (patch) | |
| tree | 9eeb47512b9df85b460b02a0d51dab52c8d28d4e /source | |
| parent | 99584007795a6d6b047698f16db123ba90ce7128 (diff) | |
Fix the issue that 'spGetDependencyFilePath' report 'unknown' (#3927) (#3939)
Fix the issue that 'spGetDependencyFilePath' will report "unknown"
for the source code is from string. We only reported valid file path
when the source code is file a file, so we change that to report a valid
file name even when the source code is from the string.
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 355da23b9..9d018d47f 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -6102,7 +6102,7 @@ char const* EndToEndCompileRequest::getDependencyFilePath(int index) auto frontEndReq = getFrontEndReq(); auto program = frontEndReq->getGlobalAndEntryPointsComponentType(); SourceFile* sourceFile = program->getFileDependencies()[index]; - return sourceFile->getPathInfo().hasFileFoundPath() ? sourceFile->getPathInfo().foundPath.getBuffer() : "unknown"; + return sourceFile->getPathInfo().hasFoundPath() ? sourceFile->getPathInfo().foundPath.getBuffer() : "unknown"; } int EndToEndCompileRequest::getTranslationUnitCount() |
