mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: force .exe extension, when compiling on windows
This commit is contained in:
parent
d823d82207
commit
fb0817277f
@ -118,6 +118,15 @@ fn (v mut V) cc() {
|
||||
verror('-fast is only supported on Linux right now')
|
||||
}
|
||||
}
|
||||
|
||||
if !v.pref.is_so
|
||||
&& v.pref.build_mode != .build_module
|
||||
&& os.user_os() == 'windows'
|
||||
&& !v.out_name.ends_with('.exe')
|
||||
{
|
||||
v.out_name += '.exe'
|
||||
}
|
||||
|
||||
// linux_host := os.user_os() == 'linux'
|
||||
v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name')
|
||||
if v.pref.is_so {
|
||||
|
Loading…
Reference in New Issue
Block a user