[all-commits] [llvm/llvm-project] 2b3717: [clang][Driver] Implement AddClangSystemIncludeArg...

brad0 via All-commits all-commits at lists.llvm.org
Sun Aug 23 17:09:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b37174b9a5db235e493cb72e4454cc08a1b1791
      https://github.com/llvm/llvm-project/commit/2b37174b9a5db235e493cb72e4454cc08a1b1791
  Author: Brad Smith <brad at comstyle.com>
  Date:   2020-08-23 (Sun, 23 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




More information about the All-commits mailing list