Skip to content

Commit 447f519

Browse files
committed
Better error message when prebuilt triplet is not availablew
1 parent 805f6ef commit 447f519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ impl OnnxPrebuiltArchive for Triplet {
344344
)),
345345
_ => {
346346
panic!(
347-
"Unsupported prebuilt triplet: {:?}, {:?}, {:?}",
348-
self.os, self.arch, self.accelerator
347+
"Unsupported prebuilt triplet: {:?}, {:?}, {:?}. Please use {}=system and {}=/path/to/onnxruntime",
348+
self.os, self.arch, self.accelerator, ORT_ENV_STRATEGY, ORT_ENV_SYSTEM_LIB_LOCATION
349349
);
350350
}
351351
}

0 commit comments

Comments
 (0)