scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 10179858ebe703a0245279a17c08f97109510f45
parent 614668a41b6c946aefad337904b82091ab16d6b4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  7 Mar 2017 08:42:44 +0100

Change .as extension to .s

.as is a two letter extension which makes harder to write makefile rules.
Commonly assembler files are noted using .s extension.

Diffstat:
Rcrt/amd64-linux/crt.as -> crt/amd64-linux/crt.s | 0
Mdriver/posix/scc.c | 4++--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crt/amd64-linux/crt.as b/crt/amd64-linux/crt.s diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -187,7 +187,7 @@ settool(int tool, char *infile, int nexttool) addarg(tool, t->outfile); break; case TEEAS: - t->outfile = outfname(infile, "as"); + t->outfile = outfname(infile, "s"); addarg(tool, t->outfile); break; case AS: @@ -275,7 +275,7 @@ toolfor(char *file) return CC2; if (!strcmp(dot, ".qbe")) return QBE; - if (!strcmp(dot, ".as")) + if (!strcmp(dot, ".s")) return AS; if (!strcmp(dot, ".o")) return LD;