Skip to content

Commit

Permalink
Treat windows gnullvm same as gnu for implib name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jschwe committed Aug 25, 2024
1 parent eda8f9c commit 73cbe74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Corrosion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 73cbe74

Please sign in to comment.