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:
1 parent
67b61cfb22
commit
58cfd46b25
1 file changed
-3
@@ -184,10 +184,7 @@ elif [ -n "$STAGE2" ]; then
|
|||||||
export PATH="$PREFIX/bin:$PATH"
|
export PATH="$PREFIX/bin:$PATH"
|
||||||
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_C_COMPILER=clang"
|
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_C_COMPILER=clang"
|
||||||
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_CXX_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"
|
CMAKEFLAGS="$CMAKEFLAGS -DLLVM_USE_LINKER=lld"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$LTO" ]; then
|
if [ -n "$LTO" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user