Skip to content

Commit

Permalink
Don't use lld on s390x architecture in init-compiler.sh (#11544)
Browse files Browse the repository at this point in the history
It doesn't work there, see dotnet/runtime#78026
  • Loading branch information
akoeplinger committed Nov 8, 2022
1 parent 5d016ab commit d5b8d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/common/native/init-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ if [[ -z "$CC" ]]; then
exit 1
fi

# Only lld version >= 9 can be considered stable
if [[ "$compiler" == "clang" && "$majorVersion" -ge 9 ]]; then
# Only lld version >= 9 can be considered stable. lld doesn't support s390x.
if [[ "$compiler" == "clang" && "$majorVersion" -ge 9 && "$build_arch" != "s390x" ]]; then
if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
LDFLAGS="-fuse-ld=lld"
fi
Expand Down

0 comments on commit d5b8d70

Please sign in to comment.