[PATCH] D87143: Check whether Gentoo-specific configuration directory exists

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 10:45:24 PDT 2020


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Gnu.cpp:2538
     const SmallVectorImpl<StringRef> &CandidateBiarchTriples) {
+  if (!D.getVFS().exists(D.SysRoot + GentooConfigDir))
+    return false;
----------------
Thanks. This should reduce the number of stat syscalls.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87143



More information about the cfe-commits mailing list