From: uz Date: Thu, 9 Feb 2012 21:48:45 +0000 (+0000) Subject: Pass the target to the geos resource compiler. X-Git-Tag: V2.14~543 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e04b7dd71453dc871a65f3c9d194ed9ecca6465;p=cc65 Pass the target to the geos resource compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@5520 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cl65/main.c b/src/cl65/main.c index a3a137e09..f3e7136dc 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 1999-2011, Ullrich von Bassewitz */ +/* (C) 1999-2012, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -594,6 +594,12 @@ static void CompileRes (const char* File) /* Remember the current assembler argument count */ unsigned ArgCount = GRC.ArgCount; + /* Resource files need an geos-apple or geos-cbm target */ + if (Target != TGT_GEOS_APPLE && Target != TGT_GEOS_CBM) { + Error ("Resource files need a geos-apple or geos-cbm, target"); + } + CmdSetTarget (&GRC, Target); + /* Add the file as argument for the resource compiler */ CmdAddArg (&GRC, File);