ci: Let compiler figure out what linker to use

This is broken somehow. Can't be bothered to fix it - works without it anyway!
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-05-14 02:37:32 +02:00 committed by Xaymar
parent 7c44157d59
commit 5fcb592c65

View file

@ -393,8 +393,6 @@ jobs:
echo "CMAKE_C_COMPILER=gcc-${compiler[1]}" >> "$GITHUB_ENV" echo "CMAKE_C_COMPILER=gcc-${compiler[1]}" >> "$GITHUB_ENV"
echo "CMAKE_CXX_COMPILER=g++-${compiler[1]}" >> "$GITHUB_ENV" echo "CMAKE_CXX_COMPILER=g++-${compiler[1]}" >> "$GITHUB_ENV"
echo "CMAKE_C_FLAGS=-fuse-ld=ld" >> "$GITHUB_ENV"
echo "CMAKE_CXX_FLAGS=-fuse-ld=ld" >> "$GITHUB_ENV"
elif [[ "${compiler[0]}" == "Clang" ]]; then elif [[ "${compiler[0]}" == "Clang" ]]; then
curl -jLo /tmp/llvm.sh "https://apt.llvm.org/llvm.sh" curl -jLo /tmp/llvm.sh "https://apt.llvm.org/llvm.sh"
chmod +x /tmp/llvm.sh chmod +x /tmp/llvm.sh
@ -409,8 +407,6 @@ jobs:
echo "CMAKE_C_COMPILER=clang-${compiler[1]}" >> "$GITHUB_ENV" echo "CMAKE_C_COMPILER=clang-${compiler[1]}" >> "$GITHUB_ENV"
echo "CMAKE_CXX_COMPILER=clang++-${compiler[1]}" >> "$GITHUB_ENV" echo "CMAKE_CXX_COMPILER=clang++-${compiler[1]}" >> "$GITHUB_ENV"
echo "CMAKE_C_FLAGS=-fuse-ld=ld.lld" >> "$GITHUB_ENV"
echo "CMAKE_CXX_FLAGS=-fuse-ld=ld.lld" >> "$GITHUB_ENV"
else else
echo "Unknown Compiler" echo "Unknown Compiler"
exit 1 exit 1