isystem
isystem is a compiler option used by several C/C++ compilers, most notably GCC and Clang, to designate a directory as a system include directory. When a path is added with -isystem, headers found there are treated as system headers by the preprocessor.
The practical effect of marking a directory as system includes is that the compiler treats those headers
- gcc -isystem /path/to/include your_source.c
- clang++ -isystem /path/to/include your_source.cpp
- The exact diagnostic and search-order behavior can vary between compilers and versions, so it is advisable
- -isystem is commonly used when integrating libraries or vendor-supplied headers to minimize warnings and to influence
In summary, isystem provides a way to mark certain include directories as system headers, primarily to reduce