mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user