diff options
| author | Chris Bieneman <chris.bieneman@me.com> | 2019-06-05 17:35:38 +0000 |
|---|---|---|
| committer | Chris Bieneman <chris.bieneman@me.com> | 2019-06-05 17:35:38 +0000 |
| commit | b67cb3cda05bb1fa08b4789423983a7ee3f3c5e4 (patch) | |
| tree | 239b1eabbcb8724f56274d553181fcaaba2f766a /clang/cmake/caches/DistributionExample.cmake | |
| parent | d97ea1bc1acae17cf3a1689c3e63149b0c7004b1 (diff) | |
| download | bcm5719-llvm-b67cb3cda05bb1fa08b4789423983a7ee3f3c5e4.tar.gz bcm5719-llvm-b67cb3cda05bb1fa08b4789423983a7ee3f3c5e4.zip | |
Use LTO capable linker
Summary:
In DistributionExample.cmake be sure we use a LTO
capable linker, the easiest to choose is lld.
Reviewers: beanz
Reviewed By: beanz
Patch By: winksaville
Subscribers: mgorny, mehdi_amini, inglorion, dexonsmith, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62279
llvm-svn: 362624
Diffstat (limited to 'clang/cmake/caches/DistributionExample.cmake')
| -rw-r--r-- | clang/cmake/caches/DistributionExample.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/cmake/caches/DistributionExample.cmake b/clang/cmake/caches/DistributionExample.cmake index 35493edd17f..50fcc09cf07 100644 --- a/clang/cmake/caches/DistributionExample.cmake +++ b/clang/cmake/caches/DistributionExample.cmake @@ -2,7 +2,7 @@ #Enable LLVM projects and runtimes set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;lld" CACHE STRING "") -set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx" CACHE STRING "") +set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi" CACHE STRING "") # Only build the native target in stage1 since it is a throwaway build. set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") @@ -17,6 +17,11 @@ set(PACKAGE_VENDOR LLVM.org CACHE STRING "") # 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 |

