From 6e04b7dd71453dc871a65f3c9d194ed9ecca6465 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 9 Feb 2012 21:48:45 +0000 Subject: [PATCH] Pass the target to the geos resource compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@5520 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cl65/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.5