/bin/cc command modified to use SmallerC compiler by default (not LCC).
For LCC, please use /bin/lcc instead. I believe SmallerC is mature enough to try to use it as a primary compiler. System include files might need some changes (ifdefs) to adapt.
This commit is contained in:
@@ -26,4 +26,4 @@ clean:
|
|||||||
install: all
|
install: all
|
||||||
install cc $(DESTDIR)/bin/
|
install cc $(DESTDIR)/bin/
|
||||||
install cc $(DESTDIR)/bin/scc
|
install cc $(DESTDIR)/bin/scc
|
||||||
install cc $(DESTDIR)/bin/srcc
|
install cc $(DESTDIR)/bin/lcc
|
||||||
|
|||||||
@@ -449,17 +449,16 @@ main(int argc, char *argv[])
|
|||||||
pass0 = LIBEXECDIR "/smallc";
|
pass0 = LIBEXECDIR "/smallc";
|
||||||
incdir = STDINC "/smallc";
|
incdir = STDINC "/smallc";
|
||||||
|
|
||||||
} else if (strcmp ("srcc", progname) == 0) {
|
} else if (strcmp ("lcc", progname) == 0) {
|
||||||
/* Smaller C. */
|
|
||||||
mode = MODE_SMALLERC;
|
|
||||||
cppadd[0] = "-D__SMALLER_C__";
|
|
||||||
pass0 = LIBEXECDIR "/smlrc";
|
|
||||||
incdir = STDINC "/smallerc";
|
|
||||||
} else {
|
|
||||||
/* LCC: retargetable C compiler. */
|
/* LCC: retargetable C compiler. */
|
||||||
mode = MODE_LCC;
|
mode = MODE_LCC;
|
||||||
cppadd[0] = "-D__LCC__";
|
cppadd[0] = "-D__LCC__";
|
||||||
pass0 = LIBEXECDIR "/lccom";
|
pass0 = LIBEXECDIR "/lccom";
|
||||||
|
} else {
|
||||||
|
/* Smaller C. */
|
||||||
|
mode = MODE_SMALLERC;
|
||||||
|
cppadd[0] = "-D__SMALLER_C__";
|
||||||
|
pass0 = LIBEXECDIR "/smlrc";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user