From 73cbe7406d212b5f62c08dbcac2c491054f7f76f Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Sun, 25 Aug 2024 15:35:15 +0800 Subject: [PATCH] Treat windows gnullvm same as gnu for implib name The implib filename is exactly the same as for gnu targets. However, with current cargo versions, cargo will not expose the implib on gnullvm targets and instead leaves the implib in the `deps` subdirectory. --- cmake/Corrosion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Corrosion.cmake b/cmake/Corrosion.cmake index 3ad5bc17..f5132ead 100644 --- a/cmake/Corrosion.cmake +++ b/cmake/Corrosion.cmake @@ -355,7 +355,7 @@ function(_corrosion_add_library_target) set(is_windows TRUE) if(Rust_CARGO_TARGET_ENV STREQUAL "msvc") set(is_windows_msvc TRUE) - elseif(Rust_CARGO_TARGET_ENV STREQUAL "gnu") + elseif(Rust_CARGO_TARGET_ENV STREQUAL "gnu" OR Rust_CARGO_TARGET_ENV STREQUAL "gnullvm") set(is_windows_gnu TRUE) endif() elseif(Rust_CARGO_TARGET_OS STREQUAL "darwin")