Skip to content

Commit aee0b0b

Browse files
committed
Driver: silence linker logo
Adjust the librarian invocation to avoid the unnecessary logo printing. This is needed to generate static libraries with Swift.
1 parent 0438b1f commit aee0b0b

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)