From 1bbf3a3a0cf29766a5479bedb579951eea27fb4d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 2 Jul 2019 21:45:51 +0200 Subject: [PATCH] make compiler --- compiler/main.v | 2 +- vlib/os/os_win.v | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index 92e8279a27..843d6d3b39 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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') } } diff --git a/vlib/os/os_win.v b/vlib/os/os_win.v index 627677ebda..c58830b8b4 100644 --- a/vlib/os/os_win.v +++ b/vlib/os/os_win.v @@ -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 } +*/