Files
MINGW-packages/mingw-w64-uv/bzip2-use-pkgconfig.patch
Maksim Bondarenkov 6d257efeba uv: update to 0.2.6
2024-06-04 20:48:33 +03:00

14 lines
407 B
Diff

--- a/bzip2-sys/build.rs
+++ b/bzip2-sys/build.rs
@@ -12,7 +12,9 @@ fn main() {
if target.contains("windows") {
cfg.define("_WIN32", None);
cfg.define("BZ_EXPORT", None);
- } else if !cfg!(feature = "static") {
+ }
+
+ if !target.contains("msvc") {
// pkg-config doesn't guarantee static link
if pkg_config::Config::new()
.cargo_metadata(true)