Skip to content

Commit

Permalink
Merge pull request #311 from moonbitlang/tweak-pre-build-placeholder
Browse files Browse the repository at this point in the history
tweak pre build placeholder
  • Loading branch information
lijunchen authored Sep 18, 2024
2 parents e22cb71 + 2635aab commit 77e3f80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
{
"input": "a.txt",
"output": "a.mbt",
"command": ":embed --text -i ${input} -o ${output}"
"command": ":embed --text -i $input -o $output"
},
{
"input": ["b.txt"],
"output": "b.mbt",
"command": ":embed --binary -i ${input} -o ${output} --name _b"
"command": ":embed --binary -i $input -o $output --name _b"
},
{
"input": "c.txt",
"output": "c.mbt",
"command": ":embed --text -i ${input} -o ${output} --name _c"
"command": ":embed -i $input -o $output --name _c"
}
]
}
4 changes: 2 additions & 2 deletions crates/moonbuild/src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ pub fn load_moon_generate(
command.to_string()
};
let command = command
.replace("${input}", &inputs.join(" "))
.replace("${output}", &outputs.join(" "));
.replace("$input", &inputs.join(" "))
.replace("$output", &outputs.join(" "));
build.cmdline = Some(command.clone());
graph.add_build(build).unwrap();
}
Expand Down

0 comments on commit 77e3f80

Please sign in to comment.