GENie
GENie copied to clipboard
Is there a way to specify include dirs for `#include "..."` directives?
So that standard library headers will not be affected. Suppose I have sample.cpp:
#include <random>
... some code
in glibc++'s random
there is #include <debug/debug.h>
.
If I specify includedirs { "./somedir" }
and create "somedir/debug/debug.h" compilation of sample.cpp will fail because cpp will include my header instead of /usr/include/c++/5/debug/debug.h
Use #include "debug/debug.h"
What do you mean by saying use #include "debug/debug.h"
. It is not even my code, it is libstdc++'s: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/std/random#L43
Solution to this in gcc (I'm almost sure that other compilers can do that) would be to specify -iquote
instead of -I
for some directories.
See discussion in PR #180