Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / tools / gn / source_file.cc
index 7744850..b3eb560 100644 (file)
@@ -64,6 +64,8 @@ base::FilePath SourceFile::Resolve(const base::FilePath& source_root) const {
   }
 
   converted.assign(&value_[2], value_.size() - 2);
+  if (source_root.empty())
+    return UTF8ToFilePath(converted).NormalizePathSeparatorsTo('/');
   return source_root.Append(UTF8ToFilePath(converted))
       .NormalizePathSeparatorsTo('/');
 }