[hackers] [scc] Accept cpp as alternative name for cc1 || Roberto E. Vargas Caballero
commit 9a96d45d5f3495592011d19b23b5f775fb321872
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Oct 5 20:37:30 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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 $_AT_
+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
_AT_@ -38,6 +38,8 @@ main(int argc, char *argv[])
atexit(clean);
+ if (!strcmp(*argv, "cpp"))
+ onlycpp = 1;
for (;;) {
nextiter:
--argc, ++argv;
Received on Mon Oct 05 2015 - 20:41:01 CEST
This archive was generated by hypermail 2.3.0
: Mon Oct 05 2015 - 20:48:20 CEST