Open ethanmsl opened 9 months ago
Thanks for the report. I confirm the same behavior on my machine. The accelerate-src
crate does print "cargo:rustc-link-lib=framework=Accelerate"
but with recent Rust versions, this linker arg isn't getting picked when building the binary. This transitive setting of linker args by dependencies previously worked but was unintentional and has been discontinued. So you would indeed need to set linker args in the final binary.
Ideally blas-src
and accelerate-src
should make this as easy as possible, e.g. by implementing and documenting use of the DEP_
environment variables and this mechanism.
General Description:
The accelerate libary fails to link, despite correct dependency and feature specification. Clonable minmial repo example below. For a simple crate, addition of a build.rs script explicitely linking the library seems to fix this (
"cargo:rustc-link-lib=framework=Accelerate"
).Exception:
However, not show below, I was not able to fix this problem with a build-script for a Workspace based repo.
Minimal Repo Example:
Error on build:
System & Cargo information: