git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 77140cb74b46ce38740d47b55bebba9991b2d4bf
parent 133d8b3e61030722d8a481c306f22fe83b52d7da
Author: Toxa <56631470+untoxa@users.noreply.github.com>
Date:   Wed, 17 Feb 2021 11:53:35 +0300

Merge pull request #133 from basxto/sdccbindir-cli-backport

Allow to set --sdccbindir via cli flag
Diffstat:
Mgbdk-support/lcc/gb.c9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gbdk-support/lcc/gb.c b/gbdk-support/lcc/gb.c @@ -51,12 +51,12 @@ static struct { { "comflag", "-c"}, { "comdefault", "-mgbz80 --no-std-crt0 --fsigned-char --use-stdout" }, { "as", "%sdccdir%sdasgb" }, - { "bankpack", "%sdccdir%bankpack" }, + { "bankpack", "%bindir%bankpack" }, { "ld", "%sdccdir%sdldgb" }, { "libdir", "%prefix%lib/%libmodel%/asxxxx/" }, { "libmodel", "small" }, { "bindir", "%prefix%bin/" }, - { "ihxcheck", "%sdccdir%ihxcheck" }, + { "ihxcheck", "%bindir%ihxcheck" }, { "mkbin", "%sdccdir%makebin" } }; @@ -264,6 +264,11 @@ int option(char *arg) { setTokenVal("includedir", tail); return 1; } + else if ((tail = starts_with(arg, "--sdccbindir="))) { + // Allow to easily run with external SDCC snapshot / release + setTokenVal("sdccdir", tail); + return 1; + } else if ((tail = starts_with(arg, "-S"))) { // -S is compile to ASM only // When composing the compile stage, swap in of -S instead of default -c

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.