Skip to content

Commit

Permalink
hopefully fix interaction with corrosion-rs#537
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Oct 6, 2024
1 parent 8ba88ba commit 940e3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function(_corrosion_determine_libs_new target_triple out_libs out_flags)
# We leave it up to the C/C++ executable that links in the Rust static-library
# to determine which version of the msvc runtime library it should select.
list(FILTER libs_list EXCLUDE REGEX "^msvcrtd?")
list(FILTER flag_list EXCLUDE REGEX "^/defaultlib:msvcrtd?")
list(FILTER flag_list EXCLUDE REGEX "^(-Wl,)?/defaultlib:msvcrtd?")
else()
message(DEBUG "Determining required native libraries - failed: Regex match failure.")
message(DEBUG "`native-static-libs` not found in: `${cargo_build_error_message}`")
Expand Down

0 comments on commit 940e3fd

Please sign in to comment.