[PATCH] D104764: [CMake] Don't LTO optimize targets on Darwin either
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 23:51:14 PDT 2021
phosek added a comment.
In D104764#2895621 <https://reviews.llvm.org/D104764#2895621>, @azharudd wrote:
> Should this apply to Darwin even when not using LLD?
>
> I'm seeing an error which tracks down to this change. It works fine without the `-mllvm,-O0` link flags.
>
> FAILED: bin/llvm-tblgen
> [...snip...]
> Remaining virtual register operands
> UNREACHABLE executed at .../llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:209!
> clang-13: error: unable to execute command: Abort trap: 6
> clang-13: error: linker command failed due to signal (use -v to see invocation)
>
> https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/4221/consoleFull
It should, ld64 supports passing flags to libLTO via the `-mllvm` flag. We have been using this on our macOS bots for a few weeks and haven't run into any issues (they are using using ld64, not lld).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104764/new/
https://reviews.llvm.org/D104764
More information about the llvm-commits
mailing list