Skip to content

Commit 52fab94

Browse files
authored
Merge pull request #24812 from compnerd/x-marks-the-spot
Driver: use `-Xlinker` rather than `-Wl` (NFC)
2 parents 1e71185 + 4341a7b commit 52fab94

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)