From 58cfd46b2599a18f28478d80bfb080d2c3005dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 23 Mar 2022 12:19:16 +0200 Subject: [PATCH] build-llvm: Remove a special case, allow using lld for stage2 builds on macOS In the currently targeted version of LLVM, lld is usable enough for targeting macOS. --- build-llvm.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build-llvm.sh b/build-llvm.sh index 8a31a6d..3d64047 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -184,10 +184,7 @@ elif [ -n "$STAGE2" ]; then export PATH="$PREFIX/bin:$PATH" CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_C_COMPILER=clang" CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CXX_COMPILER=clang++" - if [ "$(uname)" != "Darwin" ]; then - # Current lld isn't yet properly usable on macOS - CMAKEFLAGS="$CMAKEFLAGS -DLLVM_USE_LINKER=lld" - fi + CMAKEFLAGS="$CMAKEFLAGS -DLLVM_USE_LINKER=lld" fi if [ -n "$LTO" ]; then