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




_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to