Skip to content

Commit

Permalink
wasi-nn: remove unnecessary build.rs
Browse files Browse the repository at this point in the history
The `build.rs` script was only telling Wiggle where the WITX files
lived.

prtest:full
  • Loading branch information
abrown committed May 2, 2024
1 parent 97ed947 commit bc567a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions crates/wasi-nn/build.rs

This file was deleted.

2 changes: 1 addition & 1 deletion crates/wasi-nn/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use windows::AI::MachineLearning::{LearningModelDevice, LearningModelDeviceKind}

/// Return the directory in which the test artifacts are stored.
pub fn artifacts_dir() -> PathBuf {
PathBuf::from(env!("OUT_DIR")).join("fixtures")
PathBuf::from(env::var("OUT_DIR").unwrap()).join("fixtures")
}

/// Early-return from a test if the test environment is not met. If the `CI`
Expand Down

0 comments on commit bc567a5

Please sign in to comment.