diff options
| author | seyko <seyko2@gmail.com> | 2015-01-06 16:01:41 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-01-06 16:01:41 +0300 |
| commit | b93179f3c077977ff64053ee61c3bebbd1d5a940 (patch) | |
| tree | 364488fd1c9fdbb0f7dfad3527a515c073b1f335 | |
| parent | 524abd46b4f48304f123869958bedecda1d891e9 (diff) | |
| download | tinycc-b93179f3c077977ff64053ee61c3bebbd1d5a940.tar.gz tinycc-b93179f3c077977ff64053ee61c3bebbd1d5a940.tar.bz2 | |
.i as file extension
Add a ".i" extension as alias for ".c"
GCC and file extensions:
.i C source code which should not be preprocessed.
Before a patch:
./tcc -E tccasm.c -o tccasm.i
./tcc -c tccasm.i -o tccasm.o
tccasm.i:1: error: unrecognized file type
| -rw-r--r-- | libtcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1154,7 +1154,7 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) goto the_end; } - if (!ext[0] || !PATHCMP(ext, "c")) { + if (!ext[0] || !PATHCMP(ext, "c") || !PATHCMP(ext, "i")) { /* C file assumed */ ret = tcc_compile(s1); goto the_end; |
