@@ -8,7 +8,7 @@ The package provides a source of [BLAS] and [LAPACK] via [OpenBLAS].
8
8
9
9
The following Cargo features are supported:
10
10
11
- * ` cache ` to build in ` .cargo ` instead of ` target ` (see below),
11
+ * ` cache ` to build in shared directory e.g. ` $XDG_DATA_HOME/openblas_build/ ` instead of ` target ` (see below),
12
12
* ` cblas ` to build CBLAS (enabled by default),
13
13
* ` lapacke ` to build LAPACKE (enabled by default),
14
14
* ` static ` to link to OpenBLAS statically, and
@@ -17,10 +17,17 @@ The following Cargo features are supported:
17
17
## Caching
18
18
19
19
The ` cache ` feature allows the OpenBLAS build products to be reused between
20
- crates that have different ` target ` directories. This avoids rebuilding OpenBLAS
21
- unnecessarily. However, this also prevents ` cargo clean ` from working properly,
20
+ crates that have different ` target ` directories.
21
+ This avoids rebuilding OpenBLAS unnecessarily.
22
+ However, this also prevents ` cargo clean ` from working properly,
22
23
since the aforementioned build products will not be removed by the command.
23
24
25
+ The OpenBLAS binary will be placed at ` $XDG_DATA_HOME/openblas_build/[hash of build configure object] ` .
26
+ For example, build with LAPACK and build without LAPACK will be placed on different directories.
27
+ If you build OpenBLAS as a shared library, you need to add the above directory to
28
+ ` LD_LIBRARY_PATH ` (for Linux) or ` DYLD_LIBRARY_PATH ` (for macOS).
29
+ Since build from source is not supported on Windows (see next section), this feature is also not supported.
30
+
24
31
## Windows and vcpkg
25
32
26
33
On Windows, ` openblas-src ` relies on [ vcpkg] to find OpenBLAS. Before building,
0 commit comments