[all-commits] [llvm/llvm-project] 17386c: [clang][Driver] Make multiarch output file basenam...

Keith Smiley via All-commits all-commits at lists.llvm.org
Tue Oct 19 14:09:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17386cb4dc89afad62623b9bc08516b99b9c6df7
      https://github.com/llvm/llvm-project/commit/17386cb4dc89afad62623b9bc08516b99b9c6df7
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2021-10-19 (Tue, 19 Oct 2021)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/darwin-dsymutil.c

  Log Message:
  -----------
  [clang][Driver] Make multiarch output file basenames reproducible

When building a multiarch MachO binary, previously the intermediate
output file names would contain random characters. On macOS this
filename, since it's used when linking, ended up being used as a
stable-ish identifier for the adhoc codesignature of the binary, leading
to non-reproducible binaries. This change uses the architecture, when
available, to create a stable, but unique, basename for the file.

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




More information about the All-commits mailing list