winksaville created this revision. winksaville added a reviewer: beanz. Herald added subscribers: cfe-commits, dexonsmith, inglorion, mehdi_amini, mgorny. Herald added a project: clang.
In DistributionExample.cmake be sure we use a LTO capable linker, the easiest to choose is lld. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D62279 Files: clang/cmake/caches/DistributionExample.cmake Index: clang/cmake/caches/DistributionExample.cmake =================================================================== --- clang/cmake/caches/DistributionExample.cmake +++ clang/cmake/caches/DistributionExample.cmake @@ -17,6 +17,11 @@ # the proper LTO library dependencies can be connected. set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "") +if (NOT APPLE) + # Since LLVM_ENABLE_LTO is ON we need a LTO capable linker + set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "") +endif() + # Expose stage2 targets through the stage1 build configuration. set(CLANG_BOOTSTRAP_TARGETS check-all
Index: clang/cmake/caches/DistributionExample.cmake =================================================================== --- clang/cmake/caches/DistributionExample.cmake +++ clang/cmake/caches/DistributionExample.cmake @@ -17,6 +17,11 @@ # the proper LTO library dependencies can be connected. set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "") +if (NOT APPLE) + # Since LLVM_ENABLE_LTO is ON we need a LTO capable linker + set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "") +endif() + # Expose stage2 targets through the stage1 build configuration. set(CLANG_BOOTSTRAP_TARGETS check-all
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits