[PATCH] D26649: [CMake] Support lld with LTO bootstrap

Mehdi AMINI via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 14 20:42:00 PST 2016


mehdi_amini requested changes to this revision.
mehdi_amini added inline comments.
This revision now requires changes to proceed.


================
Comment at: CMakeLists.txt:516
   if(BOOTSTRAP_LLVM_ENABLE_LTO OR LLVM_ENABLE_LTO AND NOT LLVM_BUILD_INSTRUMENTED)
-    add_dependencies(clang-bootstrap-deps LTO)
     if(APPLE)
----------------
This is needed in the "if(APPLE)" case.
And conditonalized by "if(!BOOTSTRAP_LLVM_ENABLE_LLD))"


================
Comment at: CMakeLists.txt:530
+      if(BOOTSTRAP_LLVM_ENABLE_LLD)
+        add_dependencies(clang-bootstrap-deps lld)
+      elseif(LLVM_BINUTILS_INCDIR)
----------------
Actually, not clear why this is behind `if(!APPLE)`


Repository:
  rL LLVM

https://reviews.llvm.org/D26649





More information about the cfe-commits mailing list