From 1c4cf1855632d712a67f3cc28e43469f8b5f936a Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 4 Oct 2016 17:31:40 +0200 Subject: tccpp: no cache for include if #elif seen #ifndef guards are cached, however after #elif on the same level, the file must be re-read. Also: preprocess asm as such even when there is no assembler (arm). --- libtcc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 7cfd054..068a0fc 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1334,13 +1334,11 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) tcc_strdup(filename)); parse_flags = 0; -#ifdef CONFIG_TCC_ASM /* if .S file, define __ASSEMBLER__ like gcc does */ if (filetype == AFF_TYPE_ASM || filetype == AFF_TYPE_ASMPP) { tcc_define_symbol(s1, "__ASSEMBLER__", NULL); parse_flags = PARSE_FLAG_ASM_FILE; } -#endif if (flags & AFF_PREPROCESS) { ret = tcc_preprocess(s1); -- cgit v1.3.1