We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e59cc commit 32a8269Copy full SHA for 32a8269
configure
@@ -1730,6 +1730,7 @@ do
1730
fi
1731
# FIXME: What about LDFLAGS?
1732
1733
+ CMAKE_ARGS="$CMAKE_ARGS '-DCMAKE_C_FLAGS=-D_VCRTIMP=' '-DCMAKE_CXX_FLAGS=-D_VCRTIMP='"
1734
1735
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
1736
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
src/librustc_trans/back/linker.rs
@@ -45,6 +45,8 @@ impl<'a, 'tcx> LinkerInfo {
45
cmd: &'a mut Command,
46
sess: &'a Session) -> Box<Linker+'a> {
47
if sess.target.target.options.is_like_msvc {
48
+ cmd.arg("/NODEFAULTLIB:vcruntime.lib");
49
+ cmd.arg("libvcruntime.lib");
50
Box::new(MsvcLinker {
51
cmd: cmd,
52
sess: sess,
0 commit comments