Skip to content

Commit 39cdab3

Browse files
committed
Merge branch 'master' into pr/63
2 parents 58e504f + 96957f8 commit 39cdab3

File tree

6 files changed

+27
-24
lines changed

6 files changed

+27
-24
lines changed

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The following two notices apply to every file of the project.
1111
## The Apache License
1212

1313
```
14-
Copyright 2015–2020 The openblas-src Developers
14+
Copyright 2015–2021 The openblas-src Developers
1515
1616
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
1717
this file except in compliance with the License. You may obtain a copy of the
@@ -28,7 +28,7 @@ specific language governing permissions and limitations under the License.
2828
## The MIT License
2929

3030
```
31-
Copyright 2015–2020 The openblas-src Developers
31+
Copyright 2015–2021 The openblas-src Developers
3232
3333
Permission is hereby granted, free of charge, to any person obtaining a copy of
3434
this software and associated documentation files (the “Software”), to deal in

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The package provides a source of [BLAS] and [LAPACK] via [OpenBLAS].
88

99
The following Cargo features are supported:
1010

11-
* `cache` to build in shared directory e.g. `$XDG_DATA_HOME/openblas_build/` instead of `target` (see below),
11+
* `cache` to build in a shared directory instead of `target` (see below),
1212
* `cblas` to build CBLAS (enabled by default),
1313
* `lapacke` to build LAPACKE (enabled by default),
1414
* `static` to link to OpenBLAS statically, and
@@ -17,16 +17,16 @@ The following Cargo features are supported:
1717
## Caching
1818

1919
The `cache` feature allows the OpenBLAS build products to be reused between
20-
crates that have different `target` directories.
21-
This avoids rebuilding OpenBLAS unnecessarily.
22-
However, this also prevents `cargo clean` from working properly,
20+
crates that have different `target` directories. This avoids rebuilding OpenBLAS
21+
unnecessarily. However, this also prevents `cargo clean` from working properly,
2322
since the aforementioned build products will not be removed by the command.
2423

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.
24+
The OpenBLAS binary will be placed at `${XDG_DATA_HOME}/openblas_build/[hash of
25+
build configure object]`. For example, build with LAPACK and build without
26+
LAPACK will be placed on different directories. If you build OpenBLAS as a
27+
shared library, you need to add the above directory to `LD_LIBRARY_PATH` (for
28+
Linux) or `DYLD_LIBRARY_PATH` (for macOS). Since build from source is not
29+
supported on Windows (see next section), this feature is also not supported.
3030

3131
## Windows and vcpkg
3232

openblas-build/Cargo.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
[package]
22
name = "openblas-build"
33
version = "0.1.1"
4-
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
4+
license = "Apache-2.0/MIT"
55
edition = "2018"
6-
7-
license = "MIT OR Apache-2.0"
8-
exclude = ["test_build/"]
9-
readme = "../README.md"
10-
11-
description = "OpenBLAS build helper"
6+
authors = [
7+
"Toshiki Teramura <toshiki.teramura@gmail.com>",
8+
]
9+
description = "The package provides a build helper for OpenBLAS."
1210
documentation = "https://docs.rs/openblas-build"
13-
homepage = "https://github.com/blas-lapack-rs/openblas-src"
14-
repository = "https://github.com/blas-lapack-rs/openblas-src"
11+
homepage = "https://github.com/blas-lapack-rs/openblas-src"
12+
repository = "https://github.com/blas-lapack-rs/openblas-src"
13+
readme = "../README.md"
14+
exclude = [
15+
"test_build/",
16+
]
1517

1618
[dependencies]
1719
thiserror = "1.0.22"

openblas-src/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[package]
22
name = "openblas-src"
3-
version = "0.10.2"
4-
license = "MIT OR Apache-2.0"
3+
version = "0.10.3"
4+
license = "Apache-2.0/MIT"
55
edition = "2018"
66
authors = [
77
"Corey Richardson <corey@octayn.net>",
88
"Ethan Smith <ethan@ethanhs.me>",
99
"Ivan Ukhov <ivan.ukhov@gmail.com>",
1010
"Jim Turner <git@turner.link>",
1111
"Ken Elkabany <ken@elkabany.com>",
12+
"Mitsutoshi Aoe <me@maoe.name>",
1213
"Steve Harris <steveOfAR@gmail.com>",
1314
"Toshiki Teramura <toshiki.teramura@gmail.com>",
1415
]

openblas-src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ fn build() {
149149
let source = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("source");
150150
let deliv = cfg.build(&source, &output).unwrap();
151151

152+
println!("cargo:rustc-link-search={}", output.display());
152153
for search_path in &deliv.make_conf.c_extra_libs.search_paths {
153154
println!("cargo:rustc-link-search={}", search_path.display());
154155
}
@@ -161,7 +162,6 @@ fn build() {
161162
for lib in &deliv.make_conf.f_extra_libs.libs {
162163
println!("cargo:rustc-link-lib={}", lib);
163164
}
164-
println!("cargo:rustc-link-search={}", output.display());
165165
}
166166

167167
/// openblas-src 0.9.0 compatible `make` runner

openblas-src/source

0 commit comments

Comments
 (0)