[PATCH] D91107: [Clang][Driver] Added the support for setting GCC toolchain via environment variable
Shilei Tian via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 18:42:08 PST 2020
tianshilei1992 abandoned this revision.
tianshilei1992 added a comment.
In D91107#2384191 <https://reviews.llvm.org/D91107#2384191>, @tstellar wrote:
> This code could be improved, but I don't think adding a specific environment variable for this a good solution. You can use the existing CCC_OVERRIDE_OPTIONS to get the same effect. e.g. CCC_OVERRIDE_OPTIONS=^--gcc-toolchain=/path/to/gcc
>
> More documentation can be found here: https://github.com/llvm-mirror/clang/blob/master/tools/driver/driver.cpp#L75
Thanks for the tip, Tom! It really helps. This env is too obscureā¦
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91107/new/
https://reviews.llvm.org/D91107
More information about the cfe-commits
mailing list