1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00
This commit is contained in:
paul moore 2023-12-29 17:02:45 -08:00
parent 1093d169ad
commit 096bd0b633

View File

@ -1305,6 +1305,9 @@ static void OptStaticLocals (const char* Opt attribute ((unused)),
static void OptTarget (const char* Opt attribute ((unused)), const char* Arg)
/* Set the target system */
{
if (FirstInput) {
Error ("Target must be specified before input files");
}
Target = FindTarget (Arg);
if (Target == TGT_UNKNOWN) {
Error ("No such target system: '%s'", Arg);