Skip to content

Commit 87bcca8

Browse files
who knows
1 parent 4fb721a commit 87bcca8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.cargo/config.toml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,29 @@ rustflags = [
1919
"-Clink-arg=/DEFAULTLIB:libvcruntime",
2020
"-Clink-arg=/DEFAULTLIB:libucrt",
2121
"-Clink-arg=/NODEFAULTLIB:msvcrt",
22-
"-Clink-arg=/NODEFAULTLIB:msvcprt"
22+
"-Clink-arg=/NODEFAULTLIB:msvcprt",
23+
"-Clink-arg=/NODEFAULTLIB:libcmt.dll",
24+
"-Clink-arg=/NODEFAULTLIB:msvcrtd",
25+
"-Clink-arg=/NODEFAULTLIB:msvcprtd",
26+
"-Ctarget-feature=+crt-static",
27+
"-Zpanic-abort-tests",
28+
"-Clto=yes"
2329
]
2430

2531
[target.x86_64-pc-windows-msvc.env]
26-
RUSTFLAGS = "-Ctarget-feature=+crt-static"
2732
ROCKSDB_LIB_DIR = ""
2833
LIBROCKSDB_STATIC = "1"
2934
ROCKSDB_STATIC_LIB = "1"
3035
VCPKG_ALL_STATIC = "1"
36+
VCPKGRS_DYNAMIC = "0"
37+
RUSTFLAGS = "-Ctarget-feature=+crt-static"
38+
# For native-tls
39+
OPENSSL_STATIC = "1"
40+
OPENSSL_NO_VENDOR = "0"
41+
# For any dependencies using cmake
42+
CMAKE_STATIC_VCRT = "True"
43+
# For any dependencies using pkg-config
44+
PKG_CONFIG_ALL_STATIC = "1"
3145

3246
[target.'cfg(all())']
3347
rustflags = ["--cfg", "tokio_unstable"]

0 commit comments

Comments
 (0)