Skip to content

Commit 9d69659

Browse files
committed
[rebase]: don't link stdc++/c++
1 parent 7993da8 commit 9d69659

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/etc/mklldeps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def run(args):
8080
assert('stdlib=libc++' not in out)
8181
f.write("#[link(name = \"stdc++\", kind = \"static\")]\n")
8282
else:
83+
# Note that we use `cfg_attr` here because on MSVC the C++ standard library
84+
# is not c++ or stdc++, but rather the linker takes care of linking the
85+
# right standard library.
8386
if 'stdlib=libc++' in out:
8487
f.write("#[cfg_attr(not(target_env = \"msvc\"), link(name = \"c++\"))]\n")
8588
else:

0 commit comments

Comments
 (0)