commit 807cd8e3615493acbcf4a4a5273fbfa7acc90e20 Author: Quentin Rameau <quinq@fifth.space> AuthorDate: Sat Jun 4 13:21:47 2016 +0200 Commit: Quentin Rameau <quinq@fifth.space> CommitDate: Tue Jun 7 14:30:03 2016 +0200
[driver] add w flag And keep scc usage under 80 output columns diff --git a/driver/posix/scc.c b/driver/posix/scc.c index 4f0944d..dc4469b 100644 --- a/driver/posix/scc.c +++ b/driver/posix/scc.c @@ -353,8 +353,8 @@ build(char *file) static void usage(void) { - die("usage: %s [-E|-kS] [-m arch] [-o binout] [-D macro[=val]]... " - "[-I dir]... file ...", argv0); + die("usage: %s [-E|-kS] [-w] [-m arch] [-o binout]\n" + " [-D macro[=val]]... [-I dir]... file...", argv0); } int @@ -389,6 +389,9 @@ main(int argc, char *argv[]) case 'o': tools[LD].outfile = EARGF(usage()); break; + case 'w': + addarg(CC1, "-w"); + break; case '-': fprintf(stderr, "scc: ignored parameter --%s\n", EARGF(usage()));