[all-commits] [llvm/llvm-project] 2b2e85: [lld-macho] Handle filename being passed in -lto_o...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Sat Jul 16 12:57:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b2e858e9cbb1d459804f8e393ac6b90459ccb7a
      https://github.com/llvm/llvm-project/commit/2b2e858e9cbb1d459804f8e393ac6b90459ccb7a
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-07-16 (Sat, 16 Jul 2022)

  Changed paths:
    M lld/MachO/LTO.cpp
    A lld/test/MachO/invalid/invalid-lto-object-path.ll
    M lld/test/MachO/lto-object-path.ll

  Log Message:
  -----------
  [lld-macho] Handle filename being passed in -lto_object_path

Clang passes a filename rather than a directory in -lto_object_path when
using FullLTO. Previously, it was always treated it as a directory, so
lld would crash when it attempted to create temporary files inside it.

Fixes #54805

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




More information about the All-commits mailing list