[PATCH] D145268: [lld-macho] Fix default LTO triple

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 12:46:26 PST 2023


int3 added a comment.

Huh, I'm surprised that setting `-object_path_lto` has a functional difference; I thought it was only to make debugging the intermediate object files easier. Did you figure out why?

Also, did you figure out why LLD-ELF doesn't seem to need to set `DefaultTriple`?



================
Comment at: lld/test/MachO/lto-object-path.ll:5
 ; RUN: rm -rf %t; mkdir %t
+; RUN: llc -filetype=obj %s -o %t/test-obj.o
 ; RUN: opt -thinlto-bc %s -o %t/test.o
----------------
how does compiling with `llc` different from compiling with `opt`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145268/new/

https://reviews.llvm.org/D145268



More information about the llvm-commits mailing list