From 890403f576a85a7dca90d9d20360cd73c9ec9604 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 5 Mar 2019 13:30:36 -0500 Subject: * 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' --- source/slang/source-loc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/slang/source-loc.cpp') 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 ""; } } -- cgit v1.2.3