We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87da910 commit e9a124bCopy full SHA for e9a124b
crates/sdk/build.rs
@@ -8,8 +8,18 @@ fn main() -> Result<()> {
8
.ok_or("Failed to get OUT_DIR! Something must be horribly wrong.")?,
9
);
10
11
- let protocol_path = std::env::var_os("HARMONY_PROTOCOL_PATH")
12
- .map_or_else(|| PathBuf::from("../../protocol"), PathBuf::from);
+ let protocol_path = std::env::var_os("HARMONY_PROTOCOL_PATH").map_or_else(
+ || {
13
+ std::env::current_dir()
14
+ .expect("can't get current directory")
15
+ .parent()
16
+ .expect("expected parent")
17
18
19
+ .join("protocol")
20
+ },
21
+ PathBuf::from,
22
+ );
23
24
#[rustfmt::skip]
25
let stable_svcs = [
0 commit comments