Skip to content

Commit 946587c

Browse files
authored
Merge pull request #25850 from compnerd/silence
Driver: silence linker logo
2 parents 5d9f906 + aee0b0b commit 946587c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/Driver/WindowsToolChains.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,16 @@ toolchains::Windows::constructInvocation(const StaticLinkJobAction &job,
204204

205205
ArgStringList Arguments;
206206

207-
// Configure the toolchain.
208207
const char *Link = "link";
209208
Arguments.push_back("-lib");
209+
Arguments.push_back("-nologo");
210210

211211
addPrimaryInputsOfType(Arguments, context.Inputs, context.Args,
212212
file_types::TY_Object);
213213
addInputsOfType(Arguments, context.InputActions, file_types::TY_Object);
214214

215-
Arguments.push_back(
216-
context.Args.MakeArgString(Twine("/OUT:") +
217-
context.Output.getPrimaryOutputFilename()));
215+
StringRef OutputFile = context.Output.getPrimaryOutputFilename();
216+
Arguments.push_back(context.Args.MakeArgString(Twine("/OUT:") + OutputFile));
218217

219218
InvocationInfo II{Link, Arguments};
220219
II.allowsResponseFiles = true;

0 commit comments

Comments
 (0)