Skip to content

CMake-Rust [Windows]: Fix issue detecting native static libs 1.0.2#993

Merged
val-ms merged 1 commit intoCisco-Talos:dev/1.0.2from
val-ms:CLAM-2411-windows-rustc-native-static-libs-issue-1.0.2
Aug 9, 2023
Merged

CMake-Rust [Windows]: Fix issue detecting native static libs 1.0.2#993
val-ms merged 1 commit intoCisco-Talos:dev/1.0.2from
val-ms:CLAM-2411-windows-rustc-native-static-libs-issue-1.0.2

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Aug 9, 2023

Cherry-pick of #992


Some change in Cargo/Rust version 1.70 or 1.71 appears to have broken the build on Windows because we are incorrectly attempting to check the native static libraries by compiling an empty file (/dev/null) which does not exist on Windows.

A simple fix is to make an empty file of our own and use that instead.

Fixes: #990

Some change in Cargo/Rust version 1.70 or 1.71 appears to have broken
the build on Windows because we are incorrectly attempting to check the
native static libraries by compiling an empty file (/dev/null) which
does not exist on Windows.

A simple fix is to make an empty file of our own and use that instead.

Fixes: Cisco-Talos#990
@val-ms val-ms changed the title CMake-Rust [Windows]: Fix issue detecting native static libs CMake-Rust [Windows]: Fix issue detecting native static libs 1.0.2 Aug 9, 2023
@val-ms
Copy link
Contributor Author

val-ms commented Aug 9, 2023

Build here also looking good in Jenkins.

@val-ms val-ms merged commit 50f8e64 into Cisco-Talos:dev/1.0.2 Aug 9, 2023
@val-ms val-ms deleted the CLAM-2411-windows-rustc-native-static-libs-issue-1.0.2 branch August 9, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant