cl65 now links against none.lib when using --target none
This commit is contained in:
@@ -380,19 +380,14 @@ static void CmdPrint (CmdDesc* Cmd, FILE* F)
|
|||||||
static void SetTargetFiles (void)
|
static void SetTargetFiles (void)
|
||||||
/* Set the target system files */
|
/* Set the target system files */
|
||||||
{
|
{
|
||||||
/* Determine the names of the target specific library file */
|
/* Get a pointer to the system name and its length */
|
||||||
if (Target != TGT_NONE) {
|
const char* TargetName = GetTargetName (Target);
|
||||||
|
unsigned TargetNameLen = strlen (TargetName);
|
||||||
|
|
||||||
/* Get a pointer to the system name and its length */
|
/* Set the library file */
|
||||||
const char* TargetName = GetTargetName (Target);
|
TargetLib = xmalloc (TargetNameLen + 4 + 1);
|
||||||
unsigned TargetNameLen = strlen (TargetName);
|
memcpy (TargetLib, TargetName, TargetNameLen);
|
||||||
|
strcpy (TargetLib + TargetNameLen, ".lib");
|
||||||
/* Set the library file */
|
|
||||||
TargetLib = xmalloc (TargetNameLen + 4 + 1);
|
|
||||||
memcpy (TargetLib, TargetName, TargetNameLen);
|
|
||||||
strcpy (TargetLib + TargetNameLen, ".lib");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user