aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-01-12 19:22:06 +0100
committerlemon <lsof@mailbox.org>2026-01-12 19:22:06 +0100
commite13aba91f8668224e2de0977a0beebf52ec6d65d (patch)
tree421acaea455ef0fdc5abe8c44bca52ef1c463fe7 /common.h
parent8202d977ba9950836d7e984c2c7e0aab859122b4 (diff)
driver: -iquote, -isystem, etc
With GCC-like search order
Diffstat (limited to 'common.h')
-rw-r--r--common.h17
1 files changed, 13 insertions, 4 deletions
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 */