[CMake] Don't LTO optimize targets on Darwin either
authorPetr Hosek <phosek@google.com>
Fri, 21 May 2021 06:58:07 +0000 (23:58 -0700)
committerPetr Hosek <phosek@google.com>
Thu, 24 Jun 2021 17:02:03 +0000 (10:02 -0700)
commitaac4de989ee98605f1ce918c8e541c9be0f52324
treeb6ac99d6c95f95a279ab97ea9643ac3991ca711e
parent631362665c3b3271736fee070f6b553c099250d8
[CMake] Don't LTO optimize targets on Darwin either

This is a follow up to D102732 which also expands the logic to Darwin.

Differential Revision: https://reviews.llvm.org/D104764
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/modules/HandleLLVMOptions.cmake