We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee2fd0 commit e25b20fCopy full SHA for e25b20f
openblas-src/build.rs
@@ -104,10 +104,15 @@ fn build() {
104
} else {
105
cfg.no_static = true;
106
}
107
- cfg.target = match env::var("OPENBLAS_TARGET") {
108
- Ok(target) => target.parse().ok(),
109
- _ => None,
110
- };
+ if let Ok(target) = env::var("OPENBLAS_TARGET") {
+ cfg.target = Some(
+ target
+ .parse()
111
+ .expect("Unsupported target is specified by $OPENBLAS_TARGET"),
112
+ )
113
+ // Do not default to the native target (represented by `cfg.target == None`)
114
+ // because most user set `$OPENBLAS_TARGET` explicitly will hope not to use the native target.
115
+ }
116
117
let output = if feature_enabled("cache") {
118
use std::{collections::hash_map::DefaultHasher, hash::*};
0 commit comments