[PATCH] D10431: PR21174 - clang only searches current working directory for precompiled include file

Kim Gräsman kim.grasman at gmail.com
Tue Jul 14 02:33:25 PDT 2015


kimgr added inline comments.

================
Comment at: lib/Driver/Tools.cpp:398
@@ +397,3 @@
+              FoundPTH = !UsePCH;
+            }
+          }
----------------
kimgr wrote:
> Add a `break;` here so we don't continue searching after a valid path has been found
The GCC docs here [1] say:

    If not found there, it is searched for in the remainder of the #include "..." search chain as normal.

I can't tell if the quotes are significant and if they mean only -I is searched. I don't have a GCC environment currently to test with.

[1] https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Preprocessor-Options.html#index-nostdinc_002b_002b-1026


http://reviews.llvm.org/D10431







More information about the cfe-commits mailing list