google / shaderc-rs

Rust bindings for the shaderc library.
https://docs.rs/shaderc
Apache License 2.0
261 stars 64 forks source link

Provide a feature to prefer static linking #142

Closed acid1103 closed 9 months ago

acid1103 commented 9 months ago

Some applications might prefer or require static linking. Since shaderc-sys already supports static linking, but searches for dynamic libs first, a simple feature switch, similar to build-from-source, could be used to search for static libs first. While this could be done by modifying search directories or file structures prior to building, that feels like a messier, hackier solution.