r326542 - [Frontend] Avoid including default system header paths on Fuchsia

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 2 04:32:58 PST 2018


On Fri, Mar 2, 2018 at 2:19 AM, Petr Hosek via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: phosek
> Date: Thu Mar  1 23:19:42 2018
> New Revision: 326542
>
> URL: http://llvm.org/viewvc/llvm-project?rev=326542&view=rev
> Log:
> [Frontend] Avoid including default system header paths on Fuchsia
>
> These paths aren't used and don't make sense on Fuchsia.
>
> Differential Revision: https://reviews.llvm.org/D43992
>
> Modified:
>     cfe/trunk/lib/Frontend/InitHeaderSearch.cpp

Please add test cases to verify the behavior and help ensure we don't
regress it later.

~Aaron

>
> Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=326542&r1=326541&r2=326542&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
> +++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Thu Mar  1 23:19:42 2018
> @@ -216,6 +216,7 @@ void InitHeaderSearch::AddDefaultCInclud
>      case llvm::Triple::NaCl:
>      case llvm::Triple::PS4:
>      case llvm::Triple::ELFIAMCU:
> +    case llvm::Triple::Fuchsia:
>        break;
>      case llvm::Triple::Win32:
>        if (triple.getEnvironment() != llvm::Triple::Cygnus)
> @@ -322,6 +323,7 @@ void InitHeaderSearch::AddDefaultCInclud
>    case llvm::Triple::RTEMS:
>    case llvm::Triple::NaCl:
>    case llvm::Triple::ELFIAMCU:
> +  case llvm::Triple::Fuchsia:
>      break;
>    case llvm::Triple::PS4: {
>      // <isysroot> gets prepended later in AddPath().
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list