summaryrefslogtreecommitdiffstats
path: root/source/slang/source-loc.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-03-05 13:30:36 -0500
committerGitHub <noreply@github.com>2019-03-05 13:30:36 -0500
commit890403f576a85a7dca90d9d20360cd73c9ec9604 (patch)
tree1f724809e667964d1088078fad2e6658f42e6acf /source/slang/source-loc.cpp
parent69d2651056137eb7c6e542491ae5fd59af095022 (diff)
* Fix issue with dependency including source path - even if source was compiled from a string (#878)
* Added FromString Type to PathInfo to identify paths that are not from 'files'
Diffstat (limited to 'source/slang/source-loc.cpp')
-rw-r--r--source/slang/source-loc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/source-loc.cpp b/source/slang/source-loc.cpp
index 00b6d3be4..886b4fefb 100644
--- a/source/slang/source-loc.cpp
+++ b/source/slang/source-loc.cpp
@@ -14,7 +14,11 @@ const String PathInfo::getMostUniqueIdentity() const
switch (type)
{
case Type::Normal: return uniqueIdentity;
- case Type::FoundPath: return foundPath;
+ case Type::FoundPath:
+ case Type::FromString:
+ {
+ return foundPath;
+ }
default: return "";
}
}