blas-lapack-rs / openblas-src

Source of BLAS and LAPACK via OpenBLAS
Other
78 stars 48 forks source link

Unnecessary cross-compilation for openblas-build #115

Closed gkobeaga closed 4 days ago

gkobeaga commented 9 months ago

In the process of cross-compiling, openblas-build is compiled to both host and target architectures, see #114. Building to the target architectures might not be necessary since openblas-build has its utilization exclusively for the download/build sequence of OpenBLAS.

As per my understanding, this happens because: 1) openblas-build is a build-dependency for openblas-src, so it is compiled to the host architecture; 2) it's a member of the virtual workspace, and it also ends up getting compiled to the target architecture.

One potential solution could be to remove openblas-build from the workspace. Stripping it away would result in a virtual workspace containing a single crate. Consequently, the logical step would be to move openblas-src to the root.

Dirreke commented 4 days ago

It may be because you don't set the --package or manifest-path to openblas-src. Feel free to open it again