This commit is contained in:
paul moore 2023-12-29 17:02:45 -08:00
parent 1093d169ad
commit 096bd0b633
1 changed files with 3 additions and 0 deletions

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);