mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Stats] Only use input filename, not mangled path, in stats file name.
This was causing cases of very long input pathnames to be mangled into stats filenames greater than 255 characters long, which in turn meant stats files were not being written in some cases.
This commit is contained in:
@@ -100,6 +100,8 @@ auxName(StringRef ModuleName,
|
|||||||
if (InputName.empty()) {
|
if (InputName.empty()) {
|
||||||
InputName = "all";
|
InputName = "all";
|
||||||
}
|
}
|
||||||
|
// Dispose of path prefix, which might make composite name too long.
|
||||||
|
InputName = path::filename(InputName);
|
||||||
if (OptType.empty()) {
|
if (OptType.empty()) {
|
||||||
OptType = "Onone";
|
OptType = "Onone";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user