scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 34a73222efca993ba7e86a283640b8b51bfa893c
parent 715d9b507edeed0bdfce06c54042f8642255265d
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu,  2 Jun 2016 16:13:00 +0200

[driver] add support for building multiple files

Diffstat:
driver/posix/scc.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -123,7 +123,7 @@ settool(int tool, char *input, int output) switch (tool) { case CC1: - ADDARG(tool, input); + t->args[1] = input; break; case TEE: switch (output) { @@ -285,7 +285,8 @@ main(int argc, char *argv[]) if (!argc) die("scc: fatal error: no input files"); - build(*argv); + for (; *argv; ++argv) + build(*argv); return 0; }