Skip to content

Commit 437999d

Browse files
more linker flags
1 parent 763a4fa commit 437999d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.cargo/config.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ rustflags = ["-Ctarget-cpu=apple-m1"]
1111
[target.x86_64-pc-windows-msvc]
1212
# FORCE:MULTIPLE is a bit sketchy. v8 and rocksdb both export the same symbol.
1313
# This seems to work around it to build on windows, but it's not ideal.
14-
rustflags = ["-Clink-arg=/FORCE:MULTIPLE", "-Clink-arg=/STACK:4194304", "-Ctarget-feature=+crt-static"]
14+
rustflags = [
15+
"-Clink-arg=/FORCE:MULTIPLE",
16+
"-Clink-arg=/STACK:4194304",
17+
"-Ctarget-feature=+crt-static",
18+
"-Clink-arg=/NODEFAULTLIB:libcmt",
19+
"-Clink-arg=/NODEFAULTLIB:msvcrt"
20+
]
1521

1622
[target.'cfg(all())']
1723
rustflags = ["--cfg", "tokio_unstable"]

0 commit comments

Comments
 (0)