Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: tools/clang/translation_unit/test_files/sysroot/README

Issue 1658553002: Check for system include paths by looking at clang's HeaderSearchOptions, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add helpful comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Clang looks for the presence of crtbegin.o to decide whether to add GCC standard
2 C++ library directories to the system header lookup path.
3
4 The presence of usr/lib/gcc/x86_64-linux-gnu/4.6/crtbegin.o and
5 usr/include/c++/4.6 inside this sysroot will cause clang to add the following
6 directories to the path:
7 - $SYSROOT/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
8 - $SYSROOT/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/x86_64-linux-g nu/c++/4.6
9 - $SYSROOT/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/x86_64-unknown -linux-gnu/c++/4.6
10 - $SYSROOT/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backwa rd
11
12 As well as the standard paths:
13 - $SYSROOT/usr/local/include
14 - $SYSROOT/include
15 - $SYSROOT/usr/include
16
17 See clang's lib/Driver/ToolChains.cpp:
18 - FilterNonExistent: checks for crtbegin.o
19 - Linux::AddClangCXXStdlibIncludeArgs: looks for various c++ directories
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698