Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9d1a35

Browse files
committedAug 18, 2022
Logging when MKLROOT is used
1 parent 840f5e1 commit b9d1a35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎intel-mkl-tool/src/entry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ impl Library {
230230
return Ok(lib);
231231
}
232232
if let Ok(mklroot) = std::env::var("MKLROOT") {
233+
log::info!("MKLROOT environment variable is detected: {}", mklroot);
233234
if let Some(lib) = Self::seek_directory(config, mklroot)? {
234235
return Ok(lib);
235236
}
@@ -294,6 +295,7 @@ impl Library {
294295

295296
/// Print `cargo:rustc-link-*` metadata to stdout
296297
pub fn print_cargo_metadata(&self) -> Result<()> {
298+
println!("cargo:rerun-if-env-changed=MKLROOT");
297299
println!("cargo:rustc-link-search={}", self.library_dir.display());
298300
if let Some(iomp5_dir) = &self.iomp5_dir {
299301
if iomp5_dir != &self.library_dir {

0 commit comments

Comments
 (0)
Please sign in to comment.