commit 9a96d45d5f3495592011d19b23b5f775fb321872
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon Oct 5 20:37:30 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Mon Oct 5 20:37:30 2015 +0200
Accept cpp as alternative name for cc1
If the name is cpp then activate the only cpp
output mode.
diff --git a/cc1/Makefile b/cc1/Makefile
index f2127a1..1a193c0 100644
--- 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
index 51eb228..24c380c 100644
--- 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;