mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: replace execuast => executable
This commit is contained in:
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")')
|
||||
}
|
||||
|
||||
// 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() {
|
||||
/*
|
||||
TODO implement compression.
|
||||
|
@ -76,7 +76,7 @@ pub fn (mut p Preferences) fill_with_defaults() {
|
||||
// executable on Windows + the precompiled V is more
|
||||
// optimized.
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
@ -625,7 +625,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
|
||||
must_exist(res.path)
|
||||
if !res.path.ends_with('.v') && os.is_executable(res.path) && os.is_file(res.path)
|
||||
&& 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'
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
module main
|
||||
|
||||
// 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
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user