Skip to content

Commit

Permalink
Add clarifying comments
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 25, 2024
1 parent 1ad560b commit 44022f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ impl Runner {
let sourcedir = make_sourcedir(source)?;
let store = &*STORE;
let (module, version) = lang.get_wasm(store)?;
// This is very strange, but this exactly println in this exact place is necessary to avoid
// error: "corrupted binary: misaligned metadata"
println!("IT worked");
Runner::new_wasm(store, module, version, &[], sourcedir).await
}
Expand Down Expand Up @@ -636,6 +638,8 @@ impl Lang {
}};
}
let lang = self;
// This is very strange, but this exactly println in this exact place is necessary to avoid
// error: "corrupted binary: misaligned metadata"
println!("ATTEMPTING");
Ok(include!(concat!(env!("OUT_DIR"), "/lang_runners.rs")))
}
Expand Down

0 comments on commit 44022f7

Please sign in to comment.