ref: 9c5dd37cc16d348c4548da6bc0d83393a2e14e77
parent: f6bedbd384f66b022d44140e44d2d0e63f7b1532
author: Quentin Rameau <[email protected]>
date: Tue Nov 29 10:14:19 EST 2016
driver: use cc{1,2}-ARCH as default target With the recent arch changes in scc, we don't use libexec/cc{1,2} anymore, so use directly the default ARCH set in config.mk.
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -104,14 +104,14 @@
case CC1: /* FALLTHROUGH */
case CC2:
binln = strlen(t->bin);
- if (arch) {
- n = snprintf(t->bin + binln,
- sizeof(t->bin) - binln,
- "-%s", arch);
- if (n < 0 || n >= sizeof(t->bin))
- die("scc: target tool bin too long");
- binln = strlen(t->bin);
- }
+ if (!arch)
+ arch = ARCH;
+ n = snprintf(t->bin + binln,
+ sizeof(t->bin) - binln,
+ "-%s", arch);
+ if (n < 0 || n >= sizeof(t->bin))
+ die("scc: target tool bin too long");
+ binln = strlen(t->bin);
if (strlen(t->cmd) + binln + 1 > sizeof(t->cmd))
die("scc: target tool path too long");