[PATCH] D52524: Add -Wno-poison-system-directories flag

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 14 16:15:26 PDT 2019


manojgupta added a comment.

In D52524#1621468 <https://reviews.llvm.org/D52524#1621468>, @thakis wrote:

> Couldn't cross build users just pass -nostdsysteminc to tell clang to not look in system header locations?


My understanding is "-nostdsysteminc " does not block users from passing include paths from host that are outside sysroot. i.e. clang --sysroot=/foo -nostdsysteminc  -I/usr/include still works.
This warning is to catch this behavior.
This is an actual problem in Chrome OS where building some third party packages do not respect cross-compilation.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52524/new/

https://reviews.llvm.org/D52524





More information about the cfe-commits mailing list