1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Use RelativePath for querying file extensions in Xcode exporter to correctly handle cross-platform paths

This commit is contained in:
ed 2020-09-07 15:04:42 +01:00
parent 6195a5ab60
commit 1870e2d5fd

View file

@ -2834,7 +2834,7 @@ private:
static String getFileType (const String& filePath)
{
auto file = File::createFileWithoutCheckingPath (filePath);
build_tools::RelativePath file (filePath, build_tools::RelativePath::unknown);
if (file.hasFileExtension (cppFileExtensions)) return "sourcecode.cpp.cpp";
if (file.hasFileExtension (".mm")) return "sourcecode.cpp.objcpp";