zcc calling appmake or appmake bug

Bug reports (if you don't/won't have a Github account)
Post Reply
thegouldfish
New member
Posts: 4
Joined: Fri Feb 26, 2016 10:22 pm

zcc calling appmake or appmake bug

Post by thegouldfish »

Hi all,

I've just noticed a bug in appmake (or in the way that zcc builds the arg list for it).

if you call
appmake --screen screen.scr +zx .....
the --screen screen.scr will be ignored
appmake +zx --screen screen.scr .....
works.

This is an issue because ZCC adds default arguments like +zx to the end of the argument list.
So not sure if appmake needs to be fixed to support reading args in any order, or ZCC needs to be changed to add default args first.

I have made a personal change to ZCC to add the "add_variant_args" before the parsing of the command lines and it seems to work (but I don't know the code well enough to say that I haven't broken anything else).

I'm using the "z88dk - v1.99A 23 Dec 2015", version if the readme.1st is correct.

Thanks.
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Nobody else seems to have taken it up so I will have a look.
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

I believe the problem is fixed in appmake in the March 2 build.

Would you mind giving it a try to see if that's the case? Nightly builds are available here: http://nightly.z88dk.org/

Dates of the last successful build are in the build report category of the forum.
Post Reply