[PATCH] D121992: [Clang] [Driver] Add option to set alternative toolchain path

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 18 04:11:37 PDT 2022


qiucf created this revision.
qiucf added reviewers: hubert.reinterpretcast, jsji, nemanjai, collinbaker, rpenacob.
Herald added a project: All.
qiucf requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

In some cases, we need to set alternative toolchain path other than the default with system (headers, libraries, dynamic linker prefix, `ld` path, etc.), but keep `sysroot` at the same time.

This patch introduces a new option `--overlay-platform-toolchain` to set up such alternative toolchain path.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121992

Files:
  clang/include/clang/Driver/Driver.h
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/Driver.cpp
  clang/lib/Driver/ToolChains/Gnu.cpp
  clang/lib/Driver/ToolChains/Linux.cpp
  clang/test/Driver/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0/include/.keep
  clang/test/Driver/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0/lib64/.keep
  clang/test/Driver/gcc-toolchain.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121992.416454.patch
Type: text/x-patch
Size: 4873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220318/399b1590/attachment.bin>


More information about the cfe-commits mailing list