Skip to content

Commit

Permalink
cmake/FindRust.cmake: strip MSVC linker flags ...
Browse files Browse the repository at this point in the history
... from native libraries array. Otherwise Ninja will get very confused.
  • Loading branch information
liushuyu authored and micahsnyder committed Jul 22, 2024
1 parent acdacd4 commit f65b95e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ foreach(LINE ${LINE_LIST})
string(REPLACE "native-static-libs: " "" LINE "${LINE}")
string(REGEX REPLACE " " "" LINE "${LINE}")
string(REGEX REPLACE " " ";" LINE "${LINE}")
# remove linker flags
list(FILTER LINE EXCLUDE REGEX "/.*")

if(LINE)
message(STATUS "Rust's native static libs: ${LINE}")
Expand Down

0 comments on commit f65b95e

Please sign in to comment.