mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Driver] Avoid using response files for SourceKit
We only care about the frontend arguments here, creating a response file is unnecessary. rdar://98880399
This commit is contained in:
@@ -72,6 +72,11 @@ std::optional<Job::ResponseFileInfo>
|
||||
ToolChain::getResponseFileInfo(const Compilation &C, const char *executablePath,
|
||||
const ToolChain::InvocationInfo &invocationInfo,
|
||||
const ToolChain::JobContext &context) const {
|
||||
// Never use a response file if this is a dummy driver for SourceKit, we
|
||||
// just want the frontend arguments.
|
||||
if (getDriver().isDummyDriverForFrontendInvocation())
|
||||
return std::nullopt;
|
||||
|
||||
const bool forceResponseFiles =
|
||||
C.getArgs().hasArg(options::OPT_driver_force_response_files);
|
||||
assert((invocationInfo.allowsResponseFiles || !forceResponseFiles) &&
|
||||
|
||||
Reference in New Issue
Block a user