ref: f7b4596d49179ac58320567da18a594515d24121
parent: ac7e1ec4946bd0460dfa82358abe7c225bee8501
author: Quentin Rameau <[email protected]>
date: Thu Jun 2 12:13:00 EDT 2016
[driver] add support for building multiple files
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -123,7 +123,7 @@
switch (tool) {
case CC1:
- ADDARG(tool, input);
+ t->args[1] = input;
break;
case TEE:
switch (output) {
@@ -285,7 +285,8 @@
if (!argc)
die("scc: fatal error: no input files");
- build(*argv);
+ for (; *argv; ++argv)
+ build(*argv);
return 0;
}