Skip to content

Commit 206e061

Browse files
who knows
1 parent 4fb721a commit 206e061

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.cargo/config.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ rustflags = [
2020
"-Clink-arg=/DEFAULTLIB:libucrt",
2121
"-Clink-arg=/NODEFAULTLIB:msvcrt",
2222
"-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]
@@ -28,6 +34,16 @@ ROCKSDB_LIB_DIR = ""
2834
LIBROCKSDB_STATIC = "1"
2935
ROCKSDB_STATIC_LIB = "1"
3036
VCPKG_ALL_STATIC = "1"
37+
# Existing vars...
38+
VCPKGRS_DYNAMIC = "0"
39+
RUSTFLAGS = "-Ctarget-feature=+crt-static"
40+
# For native-tls
41+
OPENSSL_STATIC = "1"
42+
OPENSSL_NO_VENDOR = "0"
43+
# For any dependencies using cmake
44+
CMAKE_STATIC_VCRT = "True"
45+
# For any dependencies using pkg-config
46+
PKG_CONFIG_ALL_STATIC = "1"
3147

3248
[target.'cfg(all())']
3349
rustflags = ["--cfg", "tokio_unstable"]

0 commit comments

Comments
 (0)