1. [NFC] Sort source files in Utility/CMakeLists.txt (details)
  2. Add -Wpoison-system-directories warning (details)
Commit decff073ee413dbc39a13b45592897b77e87552f by Jonas Devlieghere
[NFC] Sort source files in Utility/CMakeLists.txt
llvm-svn: 371784
The file was modifiedlldb/source/Utility/CMakeLists.txt
Commit 4fe2732161905a9bd53e09336851482a96b04ce9 by manojgupta
Add -Wpoison-system-directories warning
When using clang as a cross-compiler, we should not use system headers
to do the compilation. This CL adds support of a new warning flag
-Wpoison-system-directories which emits warnings if --sysroot is set and
headers from common host system location are used. By default the
warning is disabled.
The intention of the warning is to catch bad includes which are usually
generated by third party build system not targeting cross-compilation.
Such cases happen in Chrome OS when someone imports a new package or
upgrade one to a newer version from upstream.
Patch by: denik (Denis Nikitin)
llvm-svn: 371785
The file was addedclang/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/include/.keep
The file was addedclang/test/Frontend/warning-poison-system-directories.c
The file was modifiedclang/include/clang/Basic/
The file was addedclang/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/lib/.keep
The file was addedclang/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/lib/gcc/.keep
The file was addedclang/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/lib/.keep
The file was addedclang/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/include/c++/.keep
The file was modifiedclang/lib/Frontend/InitHeaderSearch.cpp