ref: 9a96d45d5f3495592011d19b23b5f775fb321872
parent: d75aa47e4e044886515394b51c437e12ecaeb64b
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Oct 5 16:37:30 EDT 2015
Accept cpp as alternative name for cc1 If the name is cpp then activate the only cpp output mode.
--- a/cc1/Makefile
+++ b/cc1/Makefile
@@ -12,6 +12,9 @@
cc1: $(OBJS) ../lib/libcc.a
$(CC) $(LDFLAGS) $(OBJS) ../lib/libcc.a -o $@
+cpp: cc1
+ ln cc1 ccp
+
test:
cd tests && ./chktest.sh
--- a/cc1/main.c
+++ b/cc1/main.c
@@ -38,6 +38,8 @@
atexit(clean);
+ if (!strcmp(*argv, "cpp"))
+ onlycpp = 1;
for (;;) {
nextiter:
--argc, ++argv;
--
⑨