commit 9a96d45d5f3495592011d19b23b5f775fb321872
parent d75aa47e4e044886515394b51c437e12ecaeb64b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 5 Oct 2015 20:37:30 +0200
Accept cpp as alternative name for cc1
If the name is cpp then activate the only cpp
output mode.
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cc1/Makefile b/cc1/Makefile
@@ -12,6 +12,9 @@ $(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h arch/$(ARCH)/arch.h
cc1: $(OBJS) ../lib/libcc.a
$(CC) $(LDFLAGS) $(OBJS) ../lib/libcc.a -o $@
+cpp: cc1
+ ln cc1 ccp
+
test:
cd tests && ./chktest.sh
diff --git a/cc1/main.c b/cc1/main.c
@@ -38,6 +38,8 @@ main(int argc, char *argv[])
atexit(clean);
+ if (!strcmp(*argv, "cpp"))
+ onlycpp = 1;
for (;;) {
nextiter:
--argc, ++argv;