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.81k stars 438 forks source link

Add objects option #1165

Open theaddonn opened 1 month ago

theaddonn commented 1 month ago

we already have the .object function which allows us to include a single extra object, but if we for example use nasm to generate objects from our asm we get a vector full of paths... here would a .objects function that takes in multiple objects be very helpful!

NobodyXu commented 1 month ago

That sounds like a good addition to the API!

I would welcome any contribution for this feature.

theaddonn commented 1 month ago

I am rn working on a pr, should be finished in a few minutes

theaddonn commented 1 month ago

pr here we go: https://github.com/rust-lang/cc-rs/pull/1166 hope it's all good :3

NobodyXu commented 1 month ago

Thanks, I've merged it, would cut a release shortly