Skip to content

Commit 58106a0

Browse files
authored
Improve formatting of 'AF_PATH not found' warning
1 parent 56ce6c2 commit 58106a0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

build.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,9 @@ fn blob_backends(conf: &Config, build_dir: &std::path::PathBuf) -> (Vec<String>,
291291
let afpath = match env::var("AF_PATH") {
292292
Ok(af_path) => PathBuf::from(&af_path),
293293
Err(_) => {
294-
println!(
295-
"WARNING! USE_LIB is defined,
296-
but AF_PATH is not found,"
297-
);
298-
println!(
299-
"Trying to find libraries from
300-
known default locations"
294+
eprintln!(
295+
"WARNING: USE_LIB is defined, but AF_PATH is not found. Trying to find \
296+
libraries from known default locations."
301297
);
302298
if cfg!(target_os = "windows") {
303299
PathBuf::from("C:\\Program Files\\ArrayFire\\v3\\")

0 commit comments

Comments
 (0)