1
0
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:
Henrixounez 2019-07-31 11:46:38 +02:00 committed by Alexander Medvednikov
parent 2e1da4b4bc
commit 7918a790b4

View File

@ -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"'