mirror of
https://github.com/cc65/cc65.git
synced 2025-04-01 02:31:56 +00:00
cl65 now links against none.lib when using --target none
This commit is contained in:
parent
4759d3956e
commit
60c68b1111
@ -380,19 +380,14 @@ static void CmdPrint (CmdDesc* Cmd, FILE* F)
|
||||
static void SetTargetFiles (void)
|
||||
/* Set the target system files */
|
||||
{
|
||||
/* Determine the names of the target specific library file */
|
||||
if (Target != TGT_NONE) {
|
||||
/* Get a pointer to the system name and its length */
|
||||
const char* TargetName = GetTargetName (Target);
|
||||
unsigned TargetNameLen = strlen (TargetName);
|
||||
|
||||
/* Get a pointer to the system name and its length */
|
||||
const char* TargetName = GetTargetName (Target);
|
||||
unsigned TargetNameLen = strlen (TargetName);
|
||||
|
||||
/* Set the library file */
|
||||
TargetLib = xmalloc (TargetNameLen + 4 + 1);
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user