diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake --- a/clang/cmake/caches/Fuchsia-stage2.cmake +++ b/clang/cmake/caches/Fuchsia-stage2.cmake @@ -9,10 +9,7 @@ set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "") set(LLVM_ENABLE_DIA_SDK OFF CACHE BOOL "") -if(NOT APPLE) - # TODO: Remove this once we switch to ld64.lld. - set(LLVM_ENABLE_LLD ON CACHE BOOL "") -endif() +set(LLVM_ENABLE_LLD ON CACHE BOOL "") set(LLVM_ENABLE_LTO ON CACHE BOOL "") set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "") set(LLVM_ENABLE_LIBCXX ON CACHE BOOL "") @@ -31,11 +28,8 @@ endif() set(CLANG_DEFAULT_CXX_STDLIB libc++ CACHE STRING "") -if(NOT APPLE) - # TODO: Remove this once we switch to ld64.lld. - set(CLANG_DEFAULT_LINKER lld CACHE STRING "") - set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "") -endif() +set(CLANG_DEFAULT_LINKER lld CACHE STRING "") +set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "") set(CLANG_DEFAULT_RTLIB compiler-rt CACHE STRING "") set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "") set(CLANG_ENABLE_STATIC_ANALYZER ON CACHE BOOL "") diff --git a/clang/cmake/caches/Fuchsia.cmake b/clang/cmake/caches/Fuchsia.cmake --- a/clang/cmake/caches/Fuchsia.cmake +++ b/clang/cmake/caches/Fuchsia.cmake @@ -22,11 +22,8 @@ endif() set(CLANG_DEFAULT_CXX_STDLIB libc++ CACHE STRING "") -if(NOT APPLE) - # TODO: Remove this once we switch to ld64.lld. - set(CLANG_DEFAULT_LINKER lld CACHE STRING "") - set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "") -endif() +set(CLANG_DEFAULT_LINKER lld CACHE STRING "") +set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "") set(CLANG_DEFAULT_RTLIB compiler-rt CACHE STRING "") set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "") set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "") @@ -112,11 +109,8 @@ set(BOOTSTRAP_CMAKE_EXE_LINKER_FLAGS "-ldl -lpthread" CACHE STRING "") endif() +set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "") set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "") -if(NOT APPLE) - # TODO: Remove this once we switch to ld64.lld. - set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "") -endif() set(CLANG_BOOTSTRAP_TARGETS check-all