Before a patch: ./tcc -E tccasm.c -o tccasm.i ./tcc -c tccasm.i -o tccasm.o tccasm.i:1: error: unrecognized file type
Unified · Split
| @@ -1154,7 +1154,7 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) · 1153 unmodified lines | |||
| 1154 | goto the_end; | 1154 | goto the_end; |
| 1155 | } | 1155 | } |
| 1156 | 1156 | ||
| 1157 | if (!ext[0] || !PATHCMP(ext, "c")) { | 1157 | if (!ext[0] || !PATHCMP(ext, "c") || !PATHCMP(ext, "i")) { |
| 1158 | /* C file assumed */ | 1158 | /* C file assumed */ |
| 1159 | ret = tcc_compile(s1); | 1159 | ret = tcc_compile(s1); |
| 1160 | goto the_end; | 1160 | goto the_end; |