Skip to content

Commit

Permalink
Fix build script for windows (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo authored Dec 5, 2024
1 parent 31d7ec8 commit 0f3c92d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion golem-worker-executor-base/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ fn find_package_root(name: &str) -> String {
}

fn preview2_mod_gen(golem_wit_path: &str) -> String {
let golem_wit_path = Path::new(golem_wit_path)
.join("wit")
.to_str()
.map(|s| s.to_string())
.unwrap();
format!(
r#"wasmtime::component::bindgen!({{
path: "{golem_wit_path}/wit",
path: r"{golem_wit_path}",
interfaces: "
import golem:api/[email protected];
import golem:api/[email protected];
Expand Down

0 comments on commit 0f3c92d

Please sign in to comment.