commit 602403034ea4a289efc9f61e562c3619b32800c2
parent 6c25604f11a67fe7f4b1bea9eac1b8a3fb7a2737
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 6 Oct 2019 22:14:45 +0200
[cc] Force cc1 when -E is used
When -E is used we can ignore the extensions of the files
and pass to cc1 because we only want to preprocess the files.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/cmd/cc/posix/cc.c b/src/cmd/cc/posix/cc.c
@@ -353,6 +353,9 @@ toolfor(char *file)
{
char *dot = strrchr(file, '.');
+ if (Eflag)
+ return CC1;
+
if (dot) {
if (!strcmp(dot, ".c"))
return CC1;