Windows compatibility (#207)

* incorrect environment detection fixed
* use %zu instead of %ld for size_t
* fix rounding in integer division
* fix compiler error on Windows
* implement missed functions
* make linker available if MinGW environment is used
* make linker available under MSYS2 Clang64 and MSYS2 MinGW64
This commit is contained in:
kvk1920
2021-07-13 13:59:55 +03:00
committed by GitHub
parent 9a6d8d7657
commit 050382b68e
8 changed files with 157 additions and 8 deletions

View File

@@ -65,6 +65,9 @@ static bool llvm_link(ObjFormat format, const char **args, int arg_count, const
case COFF:
if (lld::coff::link(arg_vector, false, output, output_err)) return true;
break;
case MINGW:
if (lld::mingw::link(arg_vector, false, output, output_err)) return true;
break;
default:
exit(-1);
}