File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ std::optional<Job::ResponseFileInfo>
7272ToolChain::getResponseFileInfo (const Compilation &C, const char *executablePath,
7373 const ToolChain::InvocationInfo &invocationInfo,
7474 const ToolChain::JobContext &context) const {
75+ // Never use a response file if this is a dummy driver for SourceKit, we
76+ // just want the frontend arguments.
77+ if (getDriver ().isDummyDriverForFrontendInvocation ())
78+ return std::nullopt ;
79+
7580 const bool forceResponseFiles =
7681 C.getArgs ().hasArg (options::OPT_driver_force_response_files);
7782 assert ((invocationInfo.allowsResponseFiles || !forceResponseFiles) &&
Original file line number Diff line number Diff line change 1+ // Make sure we don't create any temporary files.
2+ // RUN: %empty-directory(%t)
3+ // RUN: env TMP=%t TMPDIR=%t %sourcekitd-test -req=open %s -- %s -driver-force-response-files
4+ // RUN: not ls %t/* >/dev/null 2>&1
You can’t perform that action at this time.
0 commit comments