make compiler

pull/937/head
Alexander Medvednikov 2019-07-02 21:45:51 +02:00
parent a9b8bc067f
commit 1bbf3a3a0c
2 changed files with 3 additions and 1 deletions

View File

@ -615,7 +615,7 @@ mut args := ''
}
println('linux cross compilation done. resulting binary: "$v.out_name"')
}
if v.out_name_c != 'v.c' {
if v.out_name_c != 'v.c' && v.out_name_c != 'v_macos.c' {
os.rm('$TmpPath/$v.out_name_c')
}
}

View File

@ -2,6 +2,7 @@ module os
// Ref - https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types
// A handle to an object.
/*
type HANDLE voidptr // C.HANDLE
pub fn get_file_handle(path string) HANDLE {
@ -13,3 +14,4 @@ pub fn get_file_handle(path string) HANDLE {
_handle := C._get_osfhandle(C._fileno(_fh)) // CreateFile? - hah, no -_-
return _handle
}
*/