diff options
| author | 2026-01-12 19:22:06 +0100 | |
|---|---|---|
| committer | 2026-01-12 19:22:06 +0100 | |
| commit | e13aba91f8668224e2de0977a0beebf52ec6d65d (patch) | |
| tree | 421acaea455ef0fdc5abe8c44bca52ef1c463fe7 /common.h | |
| parent | 8202d977ba9950836d7e984c2c7e0aab859122b4 (diff) | |
driver: -iquote, -isystem, etc
With GCC-like search order
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 */ |