[PATCH] D134337: [clang] [Driver] More flexible rules for loading default configs

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 18 00:23:16 PDT 2022


mgorny marked an inline comment as done.
mgorny added a comment.

In D134337#3863744 <https://reviews.llvm.org/D134337#3863744>, @tstellar wrote:

> In what scenarios will clang load the clang.cfg file?

It will load it if all of the following are true:

1. `--no-default-config` is **not** passed.
2. a more specific `<triple>-clang.cfg` is not found.
3. `--driver-mode=gcc` is in effect **or** the executable is named `clang` or `*-clang` and `--driver-mode=` did not select another config file.



================
Comment at: clang/docs/UsersManual.rst:954
+
+For example, ``x86_64-pc-linux-gnu-clang-g++`` will attempt to load two
+configuration files named respectively::
----------------
tstellar wrote:
> Is `x86_64-pc-linux-gnu-clang-g++ ` being passed to --driver= in this example?
I don't understand your question. `x86_64-pc-linux-gnu-clang-g++` is the executable (symlink) name here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134337/new/

https://reviews.llvm.org/D134337



More information about the cfe-commits mailing list