[all-commits] [llvm/llvm-project] 28d58d: [Driver] Stop searching other prefixes once a GCC ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Mar 19 20:36:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28d58d8fe2094af6902dee7b4d68ec30a3e9d737
      https://github.com/llvm/llvm-project/commit/28d58d8fe2094af6902dee7b4d68ec30a3e9d737
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-03-19 (Fri, 19 Mar 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/test/Driver/linux-ld.c
    M clang/unittests/Driver/ToolChainTest.cpp

  Log Message:
  -----------
  [Driver] Stop searching other prefixes once a GCC installation is found in one prefix

so that when --sysroot is specified, the detected GCC installation will not be
overridden by another from /usr which happens to have a larger version.

This behavior is particularly inconvenient when the system has a larger version
GCC while the user wants to try out an older sysroot.

Delete some tests from linux-ld.c which overlap with cross-linux.c




More information about the All-commits mailing list