From e13aba91f8668224e2de0977a0beebf52ec6d65d Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 12 Jan 2026 19:22:06 +0100 Subject: driver: -iquote, -isystem, etc With GCC-like search order --- common.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index ac4bc88..81e34c5 100644 --- a/common.h +++ b/common.h @@ -153,10 +153,19 @@ struct option { struct wbuf *dbgout; }; extern struct option ccopt; -extern struct inclpaths { - struct inclpaths *next; - const char *path; -} *cinclpaths; +extern struct cinclpaths { + struct inclpath { + struct inclpath *next; + const char *path; + } *list, **tail; +} cinclpaths[5]; +enum { /* GCC include directory search order: https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#Options-for-Directory-Search */ + CINCL_iquote, + CINCL_I, + CINCL_isystem, + CINCLsys, + CINCL_idirafter, +}; /**********/ /* Target */ -- cgit v1.2.3