Skip to content

Commit 2a69d1b

Browse files
committed
add build.rs for oryx-tui
1 parent ea44eb9 commit 2a69d1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

oryx-tui/build.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use std::env;
2+
3+
fn main() {
4+
let path = match env::var("PROFILE").unwrap().as_str() {
5+
"release" => "../../../target/bpfel-unknown-none/release/oryx",
6+
"debug" => "../../../target/bpfel-unknown-none/debug/oryx",
7+
_ => panic!("unknown release mode"),
8+
};
9+
10+
println!("cargo::rustc-env=ORYX_BIN_PATH={path}");
11+
}

0 commit comments

Comments
 (0)