fix: rerun build script if strategy changes

This commit is contained in:
Carson M
2022-12-31 10:26:49 -06:00
parent 8eea6e6350
commit de6525ef73

View File

@@ -313,6 +313,8 @@ fn prepare_libort_dir() -> (PathBuf, bool) {
incompatible_providers![coreml, vitis_ai, directml, winml];
}
println!("cargo:rerun-if-env-changed={}", ORT_ENV_STRATEGY);
match strategy
.as_ref()
.map(String::as_str)