gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 09746f1c75f5a272eb980df23f8c93e97700aebc parent 1928bf3162a1742ee4d17caf5a4c2360f1351a76 Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Sun, 24 Jan 2021 11:53:02 +0300 Merge pull request #123 from bbbbbr/develop_lcc_debugflag LCC: add -debug for default compiler and linker debug flags Diffstat:
| M | gbdk-support/lcc/lcc.c | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/gbdk-support/lcc/lcc.c b/gbdk-support/lcc/lcc.c @@ -671,6 +671,7 @@ static void help(void) { "-Bdir/ use the compiler named `dir/rcc'\n", "-c compile only\n", "-dn set switch statement density to `n'\n", +"-debug turn on --debug for compiler, -y (.cdb) and -j (.noi) for linker\n", "-Dname -Dname=def define the preprocessor symbol `name'\n", "-E run only the preprocessor on the named C programs and unsuffixed files\n", "-g produce symbol table information for debuggers\n", @@ -820,6 +821,14 @@ static void opt(char *arg) { fprintf(stderr, "%s: %s ignored\n", progname, arg); return; case 'd': /* -dn */ + if (strcmp(arg, "-debug") == 0) { + // Load default debug options + clist = append("--debug", clist); // Debug for sdcc compiler + llist[0] = append("-y", llist[0]); // Enable .cdb output for sdldgb linker + llist[0] = append("-j", llist[0]); // Enable .noi output + return; + } + arg[1] = 's'; clist = append(arg, clist); return;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.