[all-commits] [llvm/llvm-project] ba7a1d: [Driver] move FreeBSD header search path managemen...

Matt Jacobson via All-commits all-commits at lists.llvm.org
Thu Nov 17 23:30:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba7a1d9e4aec5399e9cd45e47c7a548b1514b8ba
      https://github.com/llvm/llvm-project/commit/ba7a1d9e4aec5399e9cd45e47c7a548b1514b8ba
  Author: Matt Jacobson <mhjacobson at me.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/FreeBSD.cpp
    M clang/lib/Driver/ToolChains/FreeBSD.h
    M clang/lib/Lex/InitHeaderSearch.cpp
    M clang/test/Driver/freebsd.c
    M clang/test/Driver/freebsd.cpp

  Log Message:
  -----------
  [Driver] move FreeBSD header search path management to the driver

This matches OpenBSD, and it supports Swift's use of clang for its C interop
functionality.  Recent changes to Swift use AddClangSystemIncludeArgs() to
inspect the cc1 args; this doesn't work for platforms where cc1 adds standard
include paths implicitly.  See:

<https://github.com/apple/swift/commit/cf3354222d9f480de74db390f53a6dcc749fde14>

Also clean up InitHeaderSearch, making it clearer which targets manage header
search paths in the driver.

Differential Revision: https://reviews.llvm.org/D138183




More information about the All-commits mailing list