We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8f107f + 070916f commit 5803583Copy full SHA for 5803583
lib/DriverTool/swift_cache_tool_main.cpp
@@ -196,7 +196,9 @@ class SwiftCacheToolInvocation {
196
}
197
// drop swift-frontend executable path and leading `-frontend` from
198
// command-line.
199
- if (StringRef(FrontendArgs[0]).ends_with("swift-frontend"))
+ llvm::SmallString<261> path;
200
+ llvm::sys::path::native(Twine{FrontendArgs[0]}, path);
201
+ if (llvm::sys::path::filename(path).starts_with("swift-frontend"))
202
FrontendArgs.erase(FrontendArgs.begin());
203
if (StringRef(FrontendArgs[0]) == "-frontend")
204
0 commit comments