Add support for MS Lib.

If the target OS is Windows using the MS runtime then use LIB.EXE as the archiver.
This commit is contained in:
kai
2012-09-16 00:03:27 +02:00
parent c5fcd255ff
commit 6e554c6647
4 changed files with 46 additions and 9 deletions

View File

@@ -780,10 +780,11 @@ int main(int argc, char** argv)
{
#if POSIX
if (strcmp(ext, global.obj_ext) == 0 ||
strcmp(ext, global.bc_ext) == 0)
strcmp(ext, global.bc_ext) == 0)
#else
if (stricmp(ext, global.obj_ext) == 0 ||
stricmp(ext, global.bc_ext) == 0)
stricmp(ext, global.obj_ext_alt) == 0 ||
stricmp(ext, global.bc_ext) == 0)
#endif
{
global.params.objfiles->push(static_cast<char *>(files.data[i]));