The endswith() check for the framework name fails when joining
with the native path separator. Always use the posix separator as fix.
{
StringRef stem = path::stem(path);
SmallString<128> frameworkName;
- path::append(frameworkName, stem + ".framework", stem);
+ path::append(frameworkName, path::Style::posix, stem + ".framework", stem);
bool isFramework = path.endswith(frameworkName);
if (isFramework) {
for (StringRef dir : config->frameworkSearchPaths) {