We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7993da8 commit 9d69659Copy full SHA for 9d69659
src/etc/mklldeps.py
@@ -80,6 +80,9 @@ def run(args):
80
assert('stdlib=libc++' not in out)
81
f.write("#[link(name = \"stdc++\", kind = \"static\")]\n")
82
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.
86
if 'stdlib=libc++' in out:
87
f.write("#[cfg_attr(not(target_env = \"msvc\"), link(name = \"c++\"))]\n")
88
0 commit comments