scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6853b1e9d0763d49d00264f9c1cd3edc25c3299b
parent ff5b36e280ae269eaa3835006f0f46fbe1bb2d2f
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:
Msrc/cmd/cc/posix/cc.c | 3+++
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;