rust-lang / cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library
https://docs.rs/cc
Apache License 2.0
1.79k stars 434 forks source link

Use raw-dylib for windows-sys #1137

Closed NobodyXu closed 1 month ago

NobodyXu commented 1 month ago

To avoid having to declare #[link(name = "...")]

NobodyXu commented 1 month ago

@ChrisDenton Seems like it doesn't work https://github.com/rust-lang/cc-rs/actions/runs/9827681479/job/27130657478?pr=1137#step:8:18

    Updating crates.io index
     Locking 44 packages to latest compatible versions
      Adding linux-raw-sys v0.4.14 (latest: v0.6.4)
      Adding which v4.4.2 (latest: v6.0.1)
   Compiling cc v1.0.105 (D:\a\cc-rs\cc-rs)
   Compiling gen-target-info v0.1.0 (D:\a\cc-rs\cc-rs\dev-tools\gen-target-info)
   Compiling gen-windows-sys-binding v0.0.0 (D:\a\cc-rs\cc-rs\dev-tools\gen-windows-sys-binding)
   Compiling cc-test v0.1.0 (D:\a\cc-rs\cc-rs\dev-tools\cc-test)
error: failed to run custom build command for `cc-test v0.1.0 (D:\a\cc-rs\cc-rs\dev-tools\cc-test)`

Caused by:
  process didn't exit successfully: `D:\a\cc-rs\cc-rs\target\debug\build\cc-test-5525a8762191208f\build-script-build` (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)
warning: build failed, waiting for other jobs to finish...
NobodyXu commented 1 month ago

Seems that it needs msrv 1.67 https://github.com/rust-lang/rust/pull/104360#issuecomment-1312724787