[all-commits] [llvm/llvm-project] 1abd4c: [Clang] Bypass distro detection on non-Linux hosts

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Thu Nov 28 14:03:45 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1abd4c94d7575e4cd288e0024c1ec79f17b048a9
      https://github.com/llvm/llvm-project/commit/1abd4c94d7575e4cd288e0024c1ec79f17b048a9
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2019-11-28 (Thu, 28 Nov 2019)

  Changed paths:
    M clang/include/clang/Driver/Distro.h
    M clang/lib/Driver/Distro.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/Cuda.cpp
    M clang/lib/Driver/ToolChains/Linux.cpp
    M clang/unittests/Driver/DistroTest.cpp

  Log Message:
  -----------
  [Clang] Bypass distro detection on non-Linux hosts

Skip distro detection when we're not running on Linux, or when the target triple is not Linux. This saves a few OS calls for each invocation of clang.exe.

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




More information about the All-commits mailing list