mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
compiler: check if output file is a folder
This commit is contained in:
parent
2e1da4b4bc
commit
7918a790b4
1 changed files with 3 additions and 0 deletions
|
@ -757,6 +757,9 @@ mut args := ''
|
|||
// Output executable name
|
||||
// else {
|
||||
a << '-o $v.out_name'
|
||||
if os.dir_exists(v.out_name) {
|
||||
panic('\'$v.out_name\' is a directory')
|
||||
}
|
||||
// The C file we are compiling
|
||||
//a << '"$TmpPath/$v.out_name_c"'
|
||||
a << '".$v.out_name_c"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue