mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: check if output file is a folder
This commit is contained in:
parent
2e1da4b4bc
commit
7918a790b4
@ -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…
Reference in New Issue
Block a user