[all-commits] [llvm/llvm-project] 0c001a: [clang][Driver] Implement AddClangSystemIncludeArg...

brad0 via All-commits all-commits at lists.llvm.org
Mon Aug 24 12:57:21 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c001a171c7d671f0129d69c6a47b159544cdca6
      https://github.com/llvm/llvm-project/commit/0c001a171c7d671f0129d69c6a47b159544cdca6
  Author: Brad Smith <brad at comstyle.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/OpenBSD.cpp
    M clang/lib/Driver/ToolChains/OpenBSD.h
    M clang/lib/Frontend/InitHeaderSearch.cpp

  Log Message:
  -----------
  [clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVMSupport for the OpenBSD clang driver.

If not overridden, AddClangSystemIncludeArgs's implementation is empty, so by
default, no system include args are added to the Clang driver. This means that
invoking Clang without the frontend must include a manual -I/usr/include flag,
which is inconsistent behavior. Therefore, override and implement this method
to match. Some boilerplate is also borrowed for handling of the other driver
flags.

While we are here, also override and enable HasNativeLLVMSupport.

Patch by: 3405691582 (dana koch)

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

(cherry picked from commit 2b37174b9a5db235e493cb72e4454cc08a1b1791)




More information about the All-commits mailing list