Skip to content

Commit 3e0d599

Browse files
authored
[mono] Don't use lld on s390x architecture (#78032)
It doesn't work there. Fixes #78026
1 parent 6ea8248 commit 3e0d599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/common/native/init-compiler.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ if [[ -z "$CC" ]]; then
132132
exit 1
133133
fi
134134

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

0 commit comments

Comments
 (0)