Re: [cc65] Output directory

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-11-03 18:20:24


On Mon, Nov 03, 2003 at 11:05:03AM -0600, Geoffrey Wossum wrote:
> Now,
> cc65 -Oirs -T -g -t none -I/home/geoff/lrs/utos -I. -DHAVE_CONFIG_H
> /home/geoff/lrs/utos/utos/event.c -o /home/geoff/lrs/alphapgr/src/event.s
>
> does work as expected, with the output in /home/geoff/lrs/alphapgr/src.  Looks
> like maybe a problem with cl65 passing the "-o" to the assembler?

It's not a bug, it's a feature:-) cl65 parses the command line from left to
right, and each time it finds a file name, it will process it using the
options parsed until that point. This means one can change options between
input files:

	cl65 -c -o foo.o foo1.c -o bar.o foo2.s

This compiles foo1.c -> foo.o and foo2.s -> bar.o.

Someone (I think it was groepaz) had a similar problem some time ago, so the
behaviour should definitely be documented. All help screens show that options
should preceed filenames, but it seems this is not explicit enough.

Regards


	Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-11-03 18:20:35 CET