Skip to content

Commit

Permalink
Merge pull request #21 from mewz-project/option_output_path
Browse files Browse the repository at this point in the history
Fix output path for *.ll
  • Loading branch information
ainozaki authored Feb 16, 2024
2 parents 5280faf + 54a360a commit eea1a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ pub fn compile_wasm(wasm: &[u8], args: &Args) -> Result<()> {
}

fn output_elf(environment: Environment) -> Result<()> {
let ll_path = path::Path::new("./wasm.ll");
let obj_path = path::Path::new(environment.output_file);
let ll_path = obj_path.with_extension("ll");

log::info!("write to {}", ll_path.display());
environment
Expand Down

0 comments on commit eea1a6e

Please sign in to comment.