File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ rustflags = [
20
20
" -Clink-arg=/DEFAULTLIB:libucrt" ,
21
21
" -Clink-arg=/NODEFAULTLIB:msvcrt" ,
22
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"
23
29
]
24
30
25
31
[target .x86_64-pc-windows-msvc .env ]
@@ -28,6 +34,16 @@ ROCKSDB_LIB_DIR = ""
28
34
LIBROCKSDB_STATIC = " 1"
29
35
ROCKSDB_STATIC_LIB = " 1"
30
36
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"
31
47
32
48
[target .'cfg(all())' ]
33
49
rustflags = [" --cfg" , " tokio_unstable" ]
You can’t perform that action at this time.
0 commit comments