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>
72
72
ToolChain::getResponseFileInfo (const Compilation &C, const char *executablePath,
73
73
const ToolChain::InvocationInfo &invocationInfo,
74
74
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
+
75
80
const bool forceResponseFiles =
76
81
C.getArgs ().hasArg (options::OPT_driver_force_response_files);
77
82
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