[all-commits] [llvm/llvm-project] 0e916b: Driver: Improve performance of getSDKName()

adrian-prantl via All-commits all-commits at lists.llvm.org
Fri Mar 20 16:42:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e916bf9f5e4a51af621fd72ccf4b00b7e6f86fa
      https://github.com/llvm/llvm-project/commit/0e916bf9f5e4a51af621fd72ccf4b00b7e6f86fa
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Darwin.cpp

  Log Message:
  -----------
  Driver: Improve performance of getSDKName()

The ".sdk" component is usually the last one in the -isysroot, so it
makes more sense to scan from the back. Also, technically, someone
could install Xcode into a directory ending with .sdk, which would
break this heuristic.

Differential Revision: https://reviews.llvm.org/D76097




More information about the All-commits mailing list