[all-commits] [llvm/llvm-project] 4a3a9a: [clang][deps] Sort submodules when calculating dep...

Ben Langmuir via All-commits all-commits at lists.llvm.org
Fri Jun 17 08:10:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a3a9a5fa0b2fd0e70672c35010fe2f00740f098
      https://github.com/llvm/llvm-project/commit/4a3a9a5fa0b2fd0e70672c35010fe2f00740f098
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
    A clang/test/ClangScanDeps/submodule-order.c

  Log Message:
  -----------
  [clang][deps] Sort submodules when calculating dependencies

Dependency scanning does not care about the order of submodules for
correctness, so sort the submodules so that we get the same
command-lines to build the module across different TUs. The order of
inferred submodules can vary depending on the order of #includes in the
including TU.

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




More information about the All-commits mailing list