[all-commits] [llvm/llvm-project] 757a85: [CMake] Don't LTO optimize targets that aren't par...
Petr Hosek via All-commits
all-commits at lists.llvm.org
Wed May 19 15:02:33 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 757a851a2c273c93fa3a5b69c3d9baa1132eaf72
https://github.com/llvm/llvm-project/commit/757a851a2c273c93fa3a5b69c3d9baa1132eaf72
Author: Petr Hosek <phosek at google.com>
Date: 2021-05-19 (Wed, 19 May 2021)
Changed paths:
M llvm/CMakeLists.txt
M llvm/cmake/modules/AddLLVM.cmake
M llvm/cmake/modules/LLVMDistributionSupport.cmake
Log Message:
-----------
[CMake] Don't LTO optimize targets that aren't part of any distribution
When using distributions, targets that aren't included in any
distribution don't need to be as optimized as targets that are
included since those targets are typically only used for tests.
We might consider avoiding LTO for these targets altogether, see
https://lists.llvm.org/pipermail/llvm-dev/2021-April/149843.html
Differential Revision: https://reviews.llvm.org/D102732
More information about the All-commits
mailing list