[all-commits] [llvm/llvm-project] f6b2dd: [compiler-rt] Use ld64 flag -lto_library instead o...

Nico Weber via All-commits all-commits at lists.llvm.org
Tue Apr 19 10:55:13 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6b2ddbf381dda5f201f48a5211fb0d053640225
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M compiler-rt/test/lit.common.cfg.py
    M compiler-rt/test/profile/lit.cfg.py
    M compiler-rt/test/safestack/lit.cfg.py

  Log Message:
  [compiler-rt] Use ld64 flag -lto_library instead of DYLD_LIBRARY_PATH


 bin/llvm-lit \

pass on my machine.

Without this change, ld64 complains that the bitcode was generated by LLVM 15
while the reader is 13.1 -- the version of Xcode on my machine. Looks like the
DYLD_LIBRARY_PATH technique isn't working.

-lto_library was added back in ld64-136, which was in Xcode 4.6, which was
released over 10 years ago. So relying on it should be safe by now.

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

More information about the All-commits mailing list