31 lines
1 KiB
Diff
31 lines
1 KiB
Diff
From 91988b0241a77f1f6524c19e2ce55dda06de7242 Mon Sep 17 00:00:00 2001
|
|
Patch-Source: https://src.fedoraproject.org/rpms/dotnet6.0/blob/src/runtime/rawhide/f/runtime-arm64-lld-fix.patch
|
|
From: Omair Majid <omajid@redhat.com>
|
|
Date: Wed, 16 Feb 2022 18:08:22 +0000
|
|
Subject: [PATCH 1/1] arm64 lld fix
|
|
|
|
---
|
|
eng/native/init-compiler.sh | 7 ++-----
|
|
1 file changed, 2 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/runtime/eng/native/init-compiler.sh b/src/runtime/eng/native/init-compiler.sh
|
|
index 567d18da474..05245c7b9f8 100755
|
|
--- a/src/runtime/eng/native/init-compiler.sh
|
|
+++ b/src/runtime/eng/native/init-compiler.sh
|
|
@@ -108,11 +108,8 @@ if [[ -z "$CC" ]]; then
|
|
fi
|
|
|
|
if [[ "$compiler" == "clang" ]]; then
|
|
- if command -v "lld$desired_version" > /dev/null; then
|
|
- # Only lld version >= 9 can be considered stable
|
|
- if [[ "$majorVersion" -ge 9 ]]; then
|
|
- LDFLAGS="-fuse-ld=lld"
|
|
- fi
|
|
+ if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
|
|
+ LDFLAGS="-fuse-ld=lld"
|
|
fi
|
|
fi
|
|
|
|
--
|
|
2.34.1
|
|
|