From 678effd0fd13d5edb265fb2e9e2c09ea63f72054 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 5 Aug 2024 03:00:32 +0000 Subject: automatic import of dotnet6.0 --- runtime-arm64-lld-fix.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 runtime-arm64-lld-fix.patch (limited to 'runtime-arm64-lld-fix.patch') diff --git a/runtime-arm64-lld-fix.patch b/runtime-arm64-lld-fix.patch new file mode 100644 index 0000000..db6f520 --- /dev/null +++ b/runtime-arm64-lld-fix.patch @@ -0,0 +1,18 @@ +diff --git a/eng/native/init-compiler.sh b/eng/native/init-compiler.sh +index 567d18da474..927b3071e92 100755 +--- a/eng/native/init-compiler.sh ++++ b/eng/native/init-compiler.sh +@@ -108,11 +108,8 @@ + 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 + -- cgit v1.2.3