commit 34a73222efca993ba7e86a283640b8b51bfa893c
Author: Quentin Rameau <[email protected]>
AuthorDate: Thu Jun 2 16:13:00 2016 +0200
Commit: Quentin Rameau <[email protected]>
CommitDate: Thu Jun 2 18:23:35 2016 +0200
[driver] add support for building multiple files
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 264b75d..4301b46 100644
--- 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;
}