Skip to content

Commit 4341a7b

Browse files
committed
Driver: use -Xlinker rather than -Wl (NFC)
This is just nicer to read and makes the option standout better. NFC.
1 parent 60ee952 commit 4341a7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Driver/WindowsToolChains.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ toolchains::Windows::constructInvocation(const LinkJobAction &job,
7171
if (!Linker.empty())
7272
Arguments.push_back(context.Args.MakeArgString("-fuse-ld=" + Linker));
7373

74-
if (context.OI.DebugInfoFormat == IRGenDebugInfoFormat::CodeView)
75-
Arguments.push_back("-Wl,/DEBUG");
74+
if (context.OI.DebugInfoFormat == IRGenDebugInfoFormat::CodeView) {
75+
Arguments.push_back("-Xlinker");
76+
Arguments.push_back("/DEBUG");
77+
}
7678

7779
// Configure the toolchain.
7880
// By default, use the system clang++ to link.

0 commit comments

Comments
 (0)