mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
windows: add .exe extension to executable produced by rust_test template
This commit is contained in:
parent
d160de7f44
commit
4f626098ec
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,12 @@ declare_args() {
|
|||
rust_build = "//build_extra/rust/"
|
||||
}
|
||||
|
||||
if (is_win) {
|
||||
executable_suffix = ".exe"
|
||||
} else {
|
||||
executable_suffix = ""
|
||||
}
|
||||
|
||||
template("run_rustc") {
|
||||
action(target_name) {
|
||||
assert(defined(invoker.source_root), "Must specify source_root")
|
||||
|
@ -40,7 +46,7 @@ template("run_rustc") {
|
|||
|
||||
if (defined(is_test) && is_test) {
|
||||
# Test outputs are executables which should be in root_out_dir.
|
||||
output_file = "$root_out_dir/$crate_name"
|
||||
output_file = "$root_out_dir/$crate_name" + executable_suffix
|
||||
args += [
|
||||
"--test",
|
||||
"-o",
|
||||
|
|
Loading…
Reference in a new issue