Skip to content

Commit

Permalink
who knows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasballinger committed Jan 30, 2025
1 parent 4fb721a commit 206e061
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ rustflags = [
"-Clink-arg=/DEFAULTLIB:libucrt",
"-Clink-arg=/NODEFAULTLIB:msvcrt",
"-Clink-arg=/NODEFAULTLIB:msvcprt"
"-Clink-arg=/NODEFAULTLIB:libcmt.dll",
"-Clink-arg=/NODEFAULTLIB:msvcrtd",
"-Clink-arg=/NODEFAULTLIB:msvcprtd",
"-Ctarget-feature=+crt-static",
"-Zpanic-abort-tests",
"-Clto=yes"
]

[target.x86_64-pc-windows-msvc.env]
Expand All @@ -28,6 +34,16 @@ ROCKSDB_LIB_DIR = ""
LIBROCKSDB_STATIC = "1"
ROCKSDB_STATIC_LIB = "1"
VCPKG_ALL_STATIC = "1"
# Existing vars...
VCPKGRS_DYNAMIC = "0"
RUSTFLAGS = "-Ctarget-feature=+crt-static"
# For native-tls
OPENSSL_STATIC = "1"
OPENSSL_NO_VENDOR = "0"
# For any dependencies using cmake
CMAKE_STATIC_VCRT = "True"
# For any dependencies using pkg-config
PKG_CONFIG_ALL_STATIC = "1"

[target.'cfg(all())']
rustflags = ["--cfg", "tokio_unstable"]
Expand Down

0 comments on commit 206e061

Please sign in to comment.