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.
This commit is contained in:
Martin Storsjö committed 2022-03-23 13:07:38 +02:00
1 parent 67b61cfb22
commit 58cfd46b25
1 file changed
+1 -4
+1 -4
View File
@@ -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