Reland r371785: Add -Wpoison-system-directories warningWhen using clang as a cross-compiler, we should not use systemheaders to do the compilation.This CL adds support of a new warning flag -Wpoi
Reland r371785: Add -Wpoison-system-directories warningWhen using clang as a cross-compiler, we should not use systemheaders to do the compilation.This CL adds support of a new warning flag -Wpoison-system-directories whichemits warnings if --sysroot is set and headers from common host system locationare used.By default the warning is disabled.The intention of the warning is to catch bad includes which are usuallygenerated by third party build system not targeting cross-compilation.Such cases happen in Chrome OS when someone imports a new package or upgradeone to a newer version from upstream.This is reland of r371785 with a fix to test file.Patch by: denik (Denis Nikitin)llvm-svn: 371878
show more ...
Revert r371785.r371785 is causing fails on clang-hexagon-elf buildbots.llvm-svn: 371799
Add -Wpoison-system-directories warningWhen using clang as a cross-compiler, we should not use systemheaders to do the compilation.This CL adds support of a new warning flag -Wpoison-system-direc
Add -Wpoison-system-directories warningWhen using clang as a cross-compiler, we should not use systemheaders to do the compilation.This CL adds support of a new warning flag -Wpoison-system-directories whichemits warnings if --sysroot is set and headers from common host system locationare used.By default the warning is disabled.The intention of the warning is to catch bad includes which are usuallygenerated by third party build system not targeting cross-compilation.Such cases happen in Chrome OS when someone imports a new package or upgradeone to a newer version from upstream.Patch by: denik (Denis Nikitin)llvm-svn: 371785