v: replace execuast => executable
parent
9a5768395d
commit
955dc12523
|
@ -30,7 +30,7 @@ fn (mut g Gen) gen_embed_file_init(node ast.ComptimeCall) {
|
||||||
g.writeln('} // \$embed_file("$node.embed_file.apath")')
|
g.writeln('} // \$embed_file("$node.embed_file.apath")')
|
||||||
}
|
}
|
||||||
|
|
||||||
// gen_embedded_data embeds data into the V target execuast.
|
// gen_embedded_data embeds data into the V target executable.
|
||||||
fn (mut g Gen) gen_embedded_data() {
|
fn (mut g Gen) gen_embedded_data() {
|
||||||
/*
|
/*
|
||||||
TODO implement compression.
|
TODO implement compression.
|
||||||
|
|
|
@ -76,7 +76,7 @@ pub fn (mut p Preferences) fill_with_defaults() {
|
||||||
// executable on Windows + the precompiled V is more
|
// executable on Windows + the precompiled V is more
|
||||||
// optimized.
|
// optimized.
|
||||||
println('Saving the resulting V executable in `./v2`')
|
println('Saving the resulting V executable in `./v2`')
|
||||||
println('Use `v -o v cmd/v` if you want to replace current ' + 'V execuast.')
|
println('Use `v -o v cmd/v` if you want to replace current ' + 'V executable.')
|
||||||
p.out_name = 'v2'
|
p.out_name = 'v2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -625,7 +625,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
|
||||||
must_exist(res.path)
|
must_exist(res.path)
|
||||||
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path)
|
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path)
|
||||||
&& os.is_file(res.path + '.v') {
|
&& os.is_file(res.path + '.v') {
|
||||||
eprintln('It looks like you wanted to run "${res.path}.v", so we went ahead and did that since "$res.path" is an execuast.')
|
eprintln('It looks like you wanted to run "${res.path}.v", so we went ahead and did that since "$res.path" is an executable.')
|
||||||
res.path += '.v'
|
res.path += '.v'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module main
|
module main
|
||||||
|
|
||||||
// This prelude is loaded in every v program compiled with -live,
|
// This prelude is loaded in every v program compiled with -live,
|
||||||
// but only for the main execuast.
|
// but only for the main executable.
|
||||||
import v.live.executable
|
import v.live.executable
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue