The attached patch implements a FIXME in clang.cpp. Certain environment
variables are searched for include paths, depending on which language is
being targeted. What I used for a "spec" was gcc's behavior and
documentation, but I'm pretty sure I got it right.
The patch is relative to the base llvm directory.
search-include-path-env-vars.patch (1.76 KB)